Descrizione
phpMyFAQ 3.2.5 before 4.1.12 and 4.2.0-alpha before 4.2.0-RC.2 contains an authorization bypass vulnerability in the user/request-removal API endpoint that lets authenticated users file account removal requests as other users. The ownership check calls getUserById() with the attacker-supplied userId on the session user object, so it compares the input against the target's own record. Attackers who know a victim's login name and email can submit that userId, loginname, and email, sending administrators a spoofed Remove User Request email. This may lead an admin to delete the victim's account and data.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 3.5, EPSS 0.2% (percentile 11).
Versioni da aggiornare
Il record non riporta ancora i prodotti e le versioni corrette (analisi NVD in corso). Consultare l'advisory del vendor nei riferimenti.
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.
Riferimenti
- Riferimentohttps://github.com/thorsten/phpMyFAQ/commit/30997574d7c00b4e2d7121cf1653fb244c63dd9e
- Riferimentohttps://github.com/thorsten/phpMyFAQ/releases/tag/4.1.12
- Riferimentohttps://github.com/thorsten/phpMyFAQ/releases/tag/4.2.0-RC.2
- Riferimentohttps://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-42c6-wxqw-2rv6
- Riferimentohttps://www.vulncheck.com/advisories/phpmyfaq-3.2.5-before-4.1.12-and-4.2.0-alpha-before-4.2.0-rc.2-authorization-bypass-via-request-removal