1. Archivio CVE
  2. 2021
  3. CVE-2021-32647

CVE-2021-32647

9.1 Gravità critica CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H 9.1 – Critica

Descrizione

Emissary is a P2P based data-driven workflow engine. Affected versions of Emissary are vulnerable to post-authentication Remote Code Execution (RCE). The [`CreatePlace`](https://github.com/NationalSecurityAgency/emissary/blob/30c54ef16c6eb6ed09604a929939fb9f66868382/src/main/java/emissary/server/mvc/internal/CreatePlaceAction.java#L36) REST endpoint accepts an `sppClassName` parameter which is used to load an arbitrary class. This class is later instantiated using a constructor with the following signature: `<constructor>(String, String, String)`. An attacker may find a gadget (class) in the application classpath that could be used to achieve Remote Code Execution (RCE) or disrupt the application. Even though the chances to find a gadget (class) that allow arbitrary code execution are low, an attacker can still find gadgets that could potentially crash the application or leak sensitive data. As a work around disable network access to Emissary from untrusted sources.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
nsa emissary 6.4.0 –
Tutte le 13 vulnerabilità di Nsa Emissary

Tipo di vulnerabilità

CWE-470 Use of Externally-Controlled Input to Select Classes or Code

The product uses external input with reflection to select which classes or code to use, but it does not sufficiently prevent the input from selecting improper classes or code.

Impatto sui sistemi

AmbitoImpatto
Integrità, Riservatezza, Disponibilità, Altro Eseguire codice o comandi non autorizzati, Alterare la logica di esecuzione
Disponibilità, Altro Interruzione del servizio: arresto o riavvio, Altro
Riservatezza Leggere i dati dell’applicazione

Come si previene

Architettura e progettazione Refactor your code to avoid using reflection.
Architettura e progettazione Do not use user-controlled inputs to select and load classes or code.
Sviluppo Apply strict input validation by using allowlists or indirect selection to ensure that the user is only selecting allowable classes or code.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 150 CVE di tipo CWE-470, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org