Descrizione
The Request a Quote plugin for WordPress is vulnerable to Code Injection in versions up to, and including, 2.5.5 via the emd_delete_file AJAX action. This is due to the emd_delete_file() handler deriving a PHP function name from the attacker-controlled $_POST['path'] parameter and invoking it dynamically via the variable-function call $sess_name(), and the handler being registered for wp_ajax_nopriv with its only protection being a nonce that the plugin prints into the public quote-form page via wp_localize_script. This makes it possible for unauthenticated attackers to invoke arbitrary zero-argument PHP functions on the server, such as phpinfo(), potentially exposing sensitive server configuration and credentials, or executing other destructive built-in PHP functions.
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.110 CVE di tipo CWE-74, con andamento e prevenzione