Descrizione
The WordPress File Upload plugin for WordPress is vulnerable to Arbitrary File Deletion in versions up to, and including, 5.3.1 via the 'wfu_ajax_action_handshake' and 'wfu_ajax_action_send_email_notification' AJAX Actions. This is due to the unauthenticated handshake accepting a 'sid' parameter sanitized only with sanitize_text_field(), which does not strip '[', ']', '{', or '}', allowing the sid to be crafted as an item name containing embedded delimiter pairs that plant forged records for arbitrary other item names — including the per-session file path list and the consent flag — in the plugin's shared concatenated user-state option store, combined with the notification handler being gated only by a nonce freely minted by the same nopriv handshake. This makes it possible for unauthenticated attackers to delete arbitrary files on the affected site's server which may make remote code execution possible.
Come correggere
Priorità: Alta — pianificare la correzione entro pochi giorni. Motivazione: CVSS 9.1.
Versioni da aggiornare
- nickboss Iptanus File Upload: vulnerabili le versioni fino alla
5.3.1inclusa → aggiornare a una release successiva alla5.3.1.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Filtrare le sequenze di path traversal sul reverse proxy/WAF ed eseguire il servizio con permessi minimi sul filesystem.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| nickboss | Iptanus File Upload | ≤ 5.3.1 | — |
Riferimenti
- Riferimentohttps://plugins.trac.wordpress.org/browser/wp-file-upload/tags/5.3.0/lib/wfu_ajaxactions.php#L199
- Riferimentohttps://plugins.trac.wordpress.org/browser/wp-file-upload/tags/5.3.0/lib/wfu_ajaxactions.php#L82
- Riferimentohttps://plugins.trac.wordpress.org/browser/wp-file-upload/tags/5.3.0/lib/wfu_functions.php#L3706
- Riferimentohttps://plugins.trac.wordpress.org/browser/wp-file-upload/tags/5.3.0/lib/wfu_functions.php#L5426
- Riferimentohttps://plugins.trac.wordpress.org/browser/wp-file-upload/tags/5.3.0/lib/wfu_functions.php#L5739
- Riferimentohttps://plugins.trac.wordpress.org/browser/wp-file-upload/tags/5.3.0/lib/wfu_functions.php#L6902
- Riferimentohttps://plugins.trac.wordpress.org/browser/wp-file-upload/tags/5.3.0/lib/wfu_functions.php#L8046
- Riferimentohttps://plugins.trac.wordpress.org/changeset?old_path=/wp-file-upload/tags/5.3.0&new_path=/wp-file-upload/tags/5.3.2
- Riferimentohttps://www.wordfence.com/threat-intel/vulnerabilities/id/dd126758-04c9-4c7e-8d26-8b11aa6110e7?source=cve