Descrizione
picklescan before 0.0.22 only considers standard pickle file extensions in the scope for its vulnerability scan. An attacker could craft a malicious model that uses Pickle and include a malicious pickle file with a non-standard file extension. Because the malicious pickle file inclusion is not considered as part of the scope of picklescan, the file would pass security checks and appear to be safe, when it could instead prove to be problematic.
Tipo di vulnerabilità
CWE-646
Reliance on File Name or Extension of Externally-Supplied File
The product allows a file to be uploaded, but it relies on the file name or extension of the file to determine the appropriate behaviors.
Impatto sui sistemi
| Ambito | Impatto |
| Integrità |
Eseguire codice o comandi non autorizzati |
| Riservatezza |
Leggere i dati dell’applicazione |
| Disponibilità |
Interruzione del servizio: arresto o riavvio, Interruzione del servizio: esaurimento della CPU, Interruzione del servizio: esaurimento della memoria, Interruzione del servizio: esaurimento di risorse |
| Controllo degli accessi |
Ottenere privilegi o assumere un’altra identità |
Come si previene
Architettura e progettazione
Make decisions on the server side based on file content and not on file name or extension.
Tutte le 7 CVE di tipo CWE-646, con andamento e prevenzione