Descrizione
The Warehouse Cargo theme for WordPress is vulnerable to Arbitrary File Upload in versions up to, and including, 2.7.4 via the warehouse_cargo_install_and_activate_plugin() AJAX handler. The handler is registered on wp_ajax_ but performs no nonce verification and no capability check, allowing any authenticated user to supply an attacker-controlled URL that the server fetches, writes into wp-content/plugins/ with file_put_contents(), extracts with unzip_file() (which does not filter file extensions), and then activates via activate_plugin(). This makes it possible for authenticated attackers, with Subscriber-level access and above, to upload arbitrary files on the affected site's server which makes remote code execution possible.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.8.
Versioni da aggiornare
- themagnifico52 Warehouse Cargo: vulnerabili le versioni fino alla
2.7.4inclusa → aggiornare a una release successiva alla2.7.4.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Disabilitare il caricamento di file se non necessario e impedire l'esecuzione di script nelle directory di upload.
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 |
|---|---|---|---|
| themagnifico52 | Warehouse Cargo | ≤ 2.7.4 | — |
Riferimenti
- Riferimentohttps://themes.trac.wordpress.org/browser/warehouse-cargo/2.6.9/functions.php#L600
- Riferimentohttps://themes.trac.wordpress.org/browser/warehouse-cargo/2.6.9/functions.php#L627
- Riferimentohttps://themes.trac.wordpress.org/browser/warehouse-cargo/2.6.9/functions.php#L669
- Riferimentohttps://themes.trac.wordpress.org/browser/warehouse-cargo/2.6.9/functions.php#L685
- Riferimentohttps://themes.trac.wordpress.org/browser/warehouse-cargo/2.6.9/functions.php#L705
- Riferimentohttps://themes.trac.wordpress.org/changeset?reponame=&old=359182%40warehouse-cargo&new=359182%40warehouse-cargo
- Riferimentohttps://www.wordfence.com/threat-intel/vulnerabilities/id/e31ab604-6bcb-461c-a98c-dcef07162fe8?source=cve