Descrizione
Terminology before 1.3.1 allows Remote Code Execution because popmedia is mishandled, as demonstrated by an unsafe "cat README.md" command when \e}pn is used. A popmedia control sequence can allow the malicious execution of executable file formats registered in the X desktop share MIME types (/usr/share/applications). The control sequence defers unknown file types to the handle_unknown_media() function, which executes xdg-open against the filename specified in the sequence. The use of xdg-open for all unknown file types allows executable file formats with a registered shared MIME type to be executed. An attacker can achieve remote code execution by introducing an executable file and a plain text file containing the control sequence through a fake software project (e.g., in Git or a tarball). When the control sequence is rendered (such as with cat), the executable file will be run.
Tipo di vulnerabilità
CWE-74
Injection: elementi speciali non neutralizzati in un output destinato a un altro componente
Il prodotto costruisce in tutto o in parte un comando, una struttura dati o un record con dati provenienti dall’esterno, senza neutralizzare gli elementi speciali che possono cambiare il modo in cui il componente successivo lo interpreta.
Impatto sui sistemi
| Ambito | Impatto |
| Riservatezza |
Leggere i dati dell’applicazione |
| Controllo degli accessi |
Aggirare i meccanismi di protezione In alcuni casi il codice iniettabile controlla l’autenticazione, il che può tradursi in una vulnerabilità sfruttabile da remoto. |
| Altro |
Alterare la logica di esecuzione |
| Integrità, Altro |
Altro |
| Non ripudio |
Nascondere le proprie attività Spesso le azioni compiute dal codice iniettato non lasciano traccia nei log. |
Come si previene
Requisiti
Programming languages and supporting technologies might be chosen which are not subject to these issues.
Sviluppo
Utilize an appropriate mix of allowlist and denylist parsing to filter control-plane syntax from all input.
Tutte le 4.088 CVE di tipo CWE-74, con andamento e prevenzione