Descrizione
Improper control of dynamically-loaded code vulnerability in Apache Juneau.
When Apache Juneau parses a value into a property of type java.lang.Class (including parameterized forms), the default class swap loaded the named class with initialization enabled, so input naming a class on the application classpath ran that class's static initializer. The impact depends on the classes present in the deployment.
This issue affects Apache Juneau: through 9.2.0.
Users are recommended to upgrade to version 9.2.1, which fixes the issue.
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 149 CVE di tipo CWE-470, con andamento e prevenzione