Descrizione
Werkzeug is a comprehensive WSGI web application library. Prior to 3.1.9, the safe_join function used by send_from_directory can allow a NUL: special-device path because safe_join checks the Windows device name without first removing an empty NTFS ADS marker. The trigger is that an application runs on Windows with NTFS and serves a user-specified path ending in a special device name such as NUL:. The attack mechanism is that a requested path ends in a Windows special device name with an empty ADS marker. The impact is that the special device opens successfully and the file read hangs indefinitely. This issue is fixed in version 3.1.9.
Tipo di vulnerabilità
CWE-67
Improper Handling of Windows Device Names
The product constructs pathnames from user input, but it does not handle or incorrectly handles a pathname containing a Windows device name such as AUX or CON. This typically leads to denial of service or an information exposure when the application attempts to process the pathname as a regular file.
Impatto sui sistemi
| Ambito | Impatto |
| Disponibilità, Riservatezza, Altro |
Interruzione del servizio: arresto o riavvio, Leggere i dati dell’applicazione, Altro |
Come si previene
Sviluppo
Be familiar with the device names in the operating system where your system is deployed. Check input for these device names.
Tutte le 7 CVE di tipo CWE-67, con andamento e prevenzione