Descrizione
The Reset Database plugin for WordPress is vulnerable to privilege escalation in versions up to, and including, 1.1.3. This is due to the process_reset() function being registered on admin_init with no capability check, a computed-but-unused nonce, a gating condition that passes whenever no WordPress administrator literally named 'admin' exists (the default on modern installs), and an identity test that verifies the ATTACKER'S OWN password rather than an administrator's. This makes it possible for authenticated attackers, with subscriber-level access and above, to drop every prefixed database table, re-run wp_install() with their own credentials — making the attacker the sole site administrator — authenticate as that administrator via wp_set_auth_cookie(), and delete the uploads directory.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.8, EPSS 0.5% (percentile 46).
Versioni da aggiornare
- maltesesolutions Reset Database: vulnerabili le versioni fino alla
1.1.3inclusa → aggiornare a una release successiva alla1.1.3.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Restringere l'accesso al componente, applicare il principio del minimo privilegio e controllare i log per operazioni non autorizzate.
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 |
|---|---|---|---|
| maltesesolutions | Reset Database | ≤ 1.1.3 | — |
Riferimenti
- Riferimentohttps://plugins.trac.wordpress.org/browser/reset-database/trunk/reset-database.php#L114
- Riferimentohttps://plugins.trac.wordpress.org/browser/reset-database/trunk/reset-database.php#L26
- Riferimentohttps://plugins.trac.wordpress.org/browser/reset-database/trunk/reset-database.php#L55
- Riferimentohttps://plugins.trac.wordpress.org/browser/reset-database/trunk/reset-database.php#L63
- Riferimentohttps://plugins.trac.wordpress.org/browser/reset-database/trunk/reset-database.php#L84
- Riferimentohttps://plugins.trac.wordpress.org/browser/reset-database/trunk/reset-database.php#L90
- Riferimentohttps://www.wordfence.com/threat-intel/vulnerabilities/id/77a5f551-523c-4c7c-9834-9443ecfd3456?source=cve