Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain stored password hash via backup, SQLi, or DB dump
-
ExploitCompute HMAC reset token offline using hash as key
-
ExecutionSubmit forged reset link to set new password
-
ImpactLog in as victim account including super admin
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Password recovery security
|
| Exploitation Conditions | Exploitation requires the attacker to first READ the target account's stored password hash - the advisory names the concrete paths: the data backup (which contains every account's password hash, so an operator with only backup/export permission can escalate), any SQL injection or arbitrary database read primitive, or a leaked/exfiltrated database dump. The flaw is specific to phpMyFAQ\User\PasswordResetTokenService, which signs reset tokens with hash_hmac('sha256', userId.'|'.expires, storedPasswordHash) using the stored hash as the HMAC key with no server-side secret; this service exists ONLY on the 4.2.x line (new @since 2026-05-10) and is absent from 4.1.11 and the 4.1 branch, so stable deployments are not exposed. Limiting factors: the attacker gains nothing without prior hash read access (modeled as PR:H), no user interaction is required (UI:N), and the token also encodes userId and a (short) expiry that must be within validity. These constraints mean realistic risk is confined to environments where an attacker already holds backup access or a DB-read foothold. |
| Impact | This is a genuine high-impact account-takeover flaw (CWE-640/CWE-836) but one gated behind a meaningful precondition, so the signals are internally consistent rather than conflicting. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H) correctly encodes PR:H: the attacker must already be able to READ a stored password hash (via a database backup, SQL injection, arbitrary DB read, or a leaked DB dump) before the bug is usable. Once the hash is obtained, exploitation is trivial and fully offline (AC:L, AT:N), with full confidentiality/integrity/availability impact on the targeted account - up to and including super admin (user id 1) for complete administrative takeover. No EPSS score, CISA KEV listing, or SSVC automatable/technical-impact decision is provided in the input, so probabilistic and active-exploitation signals cannot be weighed; absence of KEV/EPSS here is missing data, not evidence of low risk. The vendor advisory includes a proof-of-concept, but it is a static code trace plus a local MariaDB reproduction of the signing design - a public PoC reference exists; it is not verified as working remote exploit code. The vuln.today Decision label is 'this_week', which is the correct urgency anchor: patch within the week, not an emergency, consistent with the privilege precondition. Net: a real priority for anyone running an affected 4.2.0 pre-release, but its reachability depends entirely on the attacker first achieving hash read access, which is why it is PR:H rather than a drive-by unauthenticated bug. |
| Exploit ScenarioDerived | An attacker who obtains any account's stored password hash - for example an operator holding only backup/export permission, or anyone with a leaked database dump or SQL-injection read primitive - feeds that hash as the HMAC key and computes a valid reset token (u, exp, sig) for the target entirely offline, with no hash cracking required. They then submit the forged reset link, set a new password, and log in as that account; targeting user id 1 yields full super-admin control. A proof-of-concept trace and a local reproduction of the token forgery are published in the GHSA advisory, though not as a packaged remote exploit. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Account takeover in the phpMyFAQ 4.2.0 pre-release line (4.2.0-alpha through 4.2.0-RC.1) arises because PasswordResetTokenService HMAC-signs password-reset tokens using the target account's stored password hash as the key instead of a server-held secret, so anyone who can read that hash can forge a valid reset link offline without cracking it and set a new password, including for the super admin (user id 1). The precondition is substantial: the attacker must first obtain the hash from a data backup, a SQL injection or arbitrary database-read primitive, or a leaked database dump, which is why the assessed vector models high privileges required (CVSS:4.0 8.6 with PR:H; independent assessment CVSS:3.1 8.6, C:H/I:H/A:H). The stable 4.1.x line does not contain the vulnerable service and is unaffected, the issue is fixed in 4.2.0-RC.2, and the reporter supplied only a local, static-trace reproduction rather than confirmed public exploit code, so risk is concentrated in environments where an attacker already holds backup access or a database-read foothold; remediation is prioritized for this week.
RemediationAI
Vendor-released patch: upgrade to phpMyFAQ 4.2.0-RC.2 (Composer package fixed in 4.2.0-RC.2), which replaces hash-keyed signing of reset tokens; anyone running 4.2.0-alpha through 4.2.0-RC.1, or tracking the 4.2 main branch, should move to 4.2.0-RC.2 before 4.2.0 final ships so the regression is not carried into a release, and the advisory at https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-rph7-w6j6-2jq3 plus the VulnCheck write-up should be used to track the fix. If upgrading cannot happen immediately, the actionable compensating controls follow the disclosed attack paths: restrict the data backup/export permission so an operator holding only backup rights cannot read every stored hash (side effect: backup duties must be re-delegated to trusted administrators), close any SQL injection or arbitrary database-read exposure and prevent database dumps from being accessible, and rotate the passwords of accounts whose hashes may have been exposed, since a changed hash invalidates tokens forged from the old one (side effect: user disruption and credential redistribution). Note that the trust boundary is "can read a hash -> account takeover", so the backup-permission path is only one instance and these controls reduce, but do not eliminate, exposure until the RC.2 upgrade is applied.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
phpMyFAQ\User\PasswordResetTokenService, new on the 4.2.x line (@since 2026-05-10), builds the reset token signature as hash_hmac('sha256', userId . '|' . expires, $passwordKey), where the caller in UnauthorizedUserController (issue path around line 130 and verify path around line 198) passes the stored password hash from $user->getEncryptedPassword(); verify() recomputes the same value and compares with hash_equals, and the class docblock describes the design explicitly. A password hash is a credential verifier, not a signing key: making it the HMAC key means the secret that protects the reset link is exactly the value an attacker reads in order to forge one, so possession of the hash collapses user id, expiry and signature into a fully offline computation (CWE-640 weak password recovery, CWE-836 use of password hash instead of password for authentication). Because the hash is per-account and changes on password change, the scheme does give single-use-on-password-change behaviour, but it provides no protection against hash disclosure through backups (which contain every account's hash), SQL injection, arbitrary database reads, or exfiltrated dumps. The service is absent from 4.1.11 and from the 4.1 branch, so the flaw is a 4.2.0 pre-release regression and not a defect in stable deployments; the suggested direction is an install-time server secret plus a server-side single-use nonce with short expiry.
Know when Phpmyfaq gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
PR:H and AC:L because the attacker must first read a stored password hash (privileged/backup or DB-read access), after which offline token forgery is deterministic; full C/I/A on the hijacked account.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
phpMyFAQ from 4.2.0-alpha before 4.2.0-RC.2 contains an authentication bypass vulnerability in PasswordResetTokenService that signs reset tokens using the stored password hash as HMAC key. Attackers who read a password hash via data backups, SQL injection, or database dumps can forge reset tokens offline to take over accounts including the super admin.
Technical POC Analysis
CWE-640 (Weak Password Recovery Mechanism for Forgotten Password), with CWE-836 (Use of Password Hash Instead of Password for Authentication) also mapped.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A high-severity flaw in the pre-release phpMyFAQ 4.2.0 line allows an attacker who has already obtained a password hash from a backup or database leak to forge password-reset tokens and take over any account, including the super administrator. Only organizations running 4.2.0-alpha through 4.2.0-RC.1 are exposed; stable 4.1.x environments are unaffected, so leadership should prioritize confirming whether any pre-release deployments are in use and treat this as a contained but serious risk to administrative access.
Apply vendor patch (upgrade to 4.2.0-RC.2 or later). Until patched, restrict access to affected instances, rotate credentials and sessions for all accounts, and audit backups and database read access for hash exposure.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Duplicate-email registration handling in phpMyFAQ 4.0.7 through 4.0.13 (and 4.0-nightly-2025-10-03 and earlier) lets una
Insufficient Session Expiration in GitHub repository thorsten/phpmyfaq prior to 3.2.2. Rated critical severity (CVSS 9.8
Authentication Bypass by Capture-replay in GitHub repository thorsten/phpmyfaq prior to 3.1.12. Rated critical severity
Weak Password Requirements in GitHub repository thorsten/phpmyfaq prior to 3.1.12. Rated critical severity (CVSS 9.8), t
Weak Password Requirements in GitHub repository thorsten/phpmyfaq prior to 3.1.8. Rated critical severity (CVSS 9.8), th
Unauthenticated SQL injection in phpMyFAQ before 4.1.2 allows remote attackers to extract credentials, admin tokens, and
In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) in admin/stat.ratings.php. Rated high severity (CVS
In phpMyFaq before 2.9.9, there is CSRF in admin/ajax.config.php. Rated high severity (CVSS 8.8), this vulnerability is
In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) for modifying a glossary. Rated high severity (CVSS
In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) in admin/stat.main.php. Rated high severity (CVSS 8
phpMyFAQ is an open source FAQ web application for PHP 8.1+ and MySQL, PostgreSQL and other databases. Rated high severi
phpMyFAQ is an open source FAQ web application for PHP 8.1+ and MySQL, PostgreSQL and other databases. Rated high severi
EUVD-2026-140260
GHSA-f42w-53m2-g4r2
NVD
CVE.org
EPSS
Exploit-DB