Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| thorsten | phpMyFAQ | 4.2.0-alpha <4.2.0-RC.2 | — |
| thorsten | phpMyFAQ | 3.2.5 <4.1.12 | — |
References
- https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-42c6-wxqw-2rv6
- https://github.com/thorsten/phpMyFAQ/commit/30997574d7c00b4e2d7121cf1653fb244c63dd9e
- https://github.com/thorsten/phpMyFAQ/releases/tag/4.1.12
- https://github.com/thorsten/phpMyFAQ/releases/tag/4.2.0-RC.2
- https://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