Descrizione
Apache NiFi 1.0.0 through 2.12.0 include the JoltTransformJSON Processor, which provides an advanced configuration user interface with a service for previewing Jolt specifications. The preview service did not restrict chained operations to standard Jolt transforms, and did not check the type of named classes before construction. This lack of restriction allowed an authenticated user to select Java classes for instantiation within the application process. Apache NiFi installations that do not include the nifi-jolt-nar are not subject to this vulnerability. Upgrading to Apache NiFi 2.13.0 is the recommended mitigation, restricting preview operations to standard Jolt transforms and checking the class type before construction.
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
| Ambito | Impatto |
| 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.
Tutte le 153 CVE di tipo CWE-470, con andamento e prevenzione