Descrizione
The Motors – Car Dealership & Classified Listings Plugin plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the stm_listings_ajax_save_user_data function in all versions up to, and including, 1.4.125 This makes it possible for authenticated attackers, with subscriber-level access and above, to delete arbitrary files on the server, which can easily lead to remote code execution when the right file is deleted (such as wp-config.php). Although deletion is bounded to wp-content/uploads (preventing removal of wp-config.php), any authenticated Subscriber can trivially exploit this because the required AJAX nonce is printed on every front-end page and the handler's stm_user_avatar_path meta is writable by any logged-in user against their own account.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.1, EPSS 0.9% (percentile 61).
Versioni da aggiornare
- stylemix Motors – Car Dealership & Classified Listings Plugin: vulnerabili le versioni fino alla
1.4.125inclusa → aggiornare a una release successiva alla1.4.125.
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 |
|---|---|---|---|
| stylemix | Motors – Car Dealership & Classified Listings Plugin | ≤ 1.4.125 | — |
Riferimenti
- Riferimentohttps://plugins.svn.wordpress.org/motors-car-dealership-classified-listings/
- Riferimentohttps://plugins.trac.wordpress.org/browser/motors-car-dealership-classified-listings/tags/1.4.124/includes/actions.php#L467
- Riferimentohttps://plugins.trac.wordpress.org/browser/motors-car-dealership-classified-listings/tags/1.4.124/includes/actions.php#L479
- Riferimentohttps://plugins.trac.wordpress.org/browser/motors-car-dealership-classified-listings/tags/1.4.124/includes/actions.php#L644
- Riferimentohttps://plugins.trac.wordpress.org/browser/motors-car-dealership-classified-listings/tags/1.4.124/includes/helpers.php#L1401
- Riferimentohttps://plugins.trac.wordpress.org/browser/motors-car-dealership-classified-listings/tags/1.4.124/includes/user-extra.php#L405
- Riferimentohttps://plugins.trac.wordpress.org/changeset/3754485/motors-car-dealership-classified-listings/trunk/includes/actions.php
- Riferimentohttps://www.wordfence.com/threat-intel/vulnerabilities/id/636c0ef8-262e-41f8-acab-fb7621a3e902?source=cve