CVE-2026-140384: phpMyFAQ before 4.1.12 Privilege Escalation via Account Takeover in User Edit API
phpMyFAQ before 4.1.12 contains an improper authorization vulnerability that allows delegated user managers to modify more privileged non-SuperAdmin accounts by changing their recovery email and disabling TOTP. Attackers with USERADD, USEREDIT, and USERDELETE rights can POST to /admin/api/user/edit with overwritetwofactor, then trigger password reset to take over accounts holding rights like CONFIGURATIONEDIT.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.1.12
Event History
Frequently Asked Questions
What level of access does an attacker need to exploit this issue?
The attacker must already be an authenticated delegated user manager with USER_ADD, USER_EDIT, and USER_DELETE rights. No user interaction is required.
Which accounts can be targeted?
Delegated user managers can modify non-SuperAdmin accounts that have greater privileges, including accounts with CONFIGURATION_EDIT rights. SuperAdmin accounts are not identified as targetable by the provided information.
How does the account takeover occur?
The attacker can use the user-edit API to replace the target's recovery email and disable TOTP using overwrite_twofactor. They can then initiate a password reset through the changed recovery email and take control of the target account.
What version resolves the issue?
The issue affects phpMyFAQ versions before 4.1.12. Upgrading to 4.1.12 or later addresses the affected version range.