Descrizione
LibreOffice can open a web query file (.iqy), which names a web page to import into a spreadsheet, when the file is given on its command line, for example when a file manager or another program opens the file with LibreOffice. The address in such a file was used without the checks that apply to an address given on the command line directly, so a crafted file could make LibreOffice do something other than open a web page, up to running code. In fixed versions only an http or https address is taken from a web query file.
Tipo di vulnerabilità
CWE-179
Incorrect Behavior Order: Early Validation
The product validates input before applying protection mechanisms that modify the input.
Impatto sui sistemi
| Ambito | Impatto |
| Controllo degli accessi, Integrità |
Aggirare i meccanismi di protezione, Eseguire codice o comandi non autorizzati |
Come si previene
Sviluppo · Validazione dell’input
Inputs should be decoded and canonicalized to the application's current internal representation before being validated (CWE-180). Make sure that the application does not decode the same input twice (CWE-174). Such errors could be used to bypass allowlist validation schemes by introducing dangerous inputs after they have been checked.
Tutte le 8 CVE di tipo CWE-179, con andamento e prevenzione