Descrizione
— Use of Externally-Controlled Input to Select Classes or Code vulnerability in Apache Jackrabbit's WebDAV/Davex client.
A malicious WebDAV/DavEx server, or an attacker able to intercept the connection, can cause the client to instantiate arbitrary classes from its classpath, which can lead to arbitrary file creation or truncation.
Only applications that use jackrabbit-spi2dav (directly or through jackrabbit-jcr2dav) to connect to a remote repository are affected. Jackrabbit servers are not affected.
Category: unsafe reflection on wire data (HIGH).
This issue affects Apache Jackrabbit: from 2.23.0 through 2.23.5, from 2.22.0 through 2.22.4, from 2.20.0 through 2.20.17.
Users are recommended to upgrade to versions 2.23.6, 2.22.5, or 2.20.18 which fix 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 152 CVE di tipo CWE-470, con andamento e prevenzione