CVE-2026-111886

phpMyFAQ 4.2.0-alpha.2 before 4.2.0-beta 2FA Brute-Force via remove-twofactor Endpoint

Published Oct 17, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
Description
phpMyFAQ from 4.2.0-alpha.2 before 4.2.0-beta lacks brute-force lockout in the removeTwofactorConfig() 2FA removal endpoint, allowing authenticated attackers to guess TOTP codes without limit. Attackers holding a hijacked session and CSRF token can repeatedly POST guesses to /api/user/remove-twofactor to permanently disable the victim's 2FA.

Analysis

AI-generated

Technical impact

The vulnerability is present in phpMyFAQ versions prior to 4.2.0‑beta. The removeTwofactorConfig() endpoint has no brute‑force lockout, allowing an attacker with a hijacked session and CSRF token to send repeated TOTP guesses to /api/user/remove‑twofactor. Each successful guess permanently disables the victim’s two‑factor authentication, effectively bypassing the second factor and granting continued access. This insecurity is characterized as an authentication bypass, CWE‑307.

Affected Systems

The affected product is phpMyFAQ from vendor thorsten, specifically versions 4.2.0‑alpha 2 through 4.2.0‑beta. The vulnerability is triggered via the /api/user/remove‑twofactor endpoint and only applies to installations that expose this API to authenticated users.

Risk and Exploitability

The CVSS score of 7.1 indicates a high severity client‑side flaw. The EPSS score is not available, and the vulnerability is not listed in CISA KEV, implying limited widespread exploitation. Nevertheless, an attacker must first acquire a hijacked session and a valid CSRF token; once those prerequisites are met, the attacker can iterate through TOTP codes without restriction, disabling the victim’s 2FA and enabling further unauthorized activity. The absence of a lockout or rate limiting makes exploitation trivial in a compromised session.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade phpMyFAQ to at least version 4.2.0‑beta 2, which adds a brute‑force lockout on the remove‑twofactor endpoint.
  • If an immediate upgrade is not feasible, restrict access to the /api/user/remove‑twofactor API to trusted IP ranges or require an additional authentication step that verifies possession of the TOTP code before allowing removal.
  • Apply application‑level rate limiting or throttling to the remove‑twofactor endpoint to reduce the feasibility of brute‑force attempts.

Generated by OpenCVE AI on October 17, 2026 at 20:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Thorsten
Thorsten phpmyfaq
Vendors & Products Thorsten
Thorsten phpmyfaq
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description phpMyFAQ from 4.2.0-alpha.2 before 4.2.0-beta lacks brute-force lockout in the removeTwofactorConfig() 2FA removal endpoint, allowing authenticated attackers to guess TOTP codes without limit. Attackers holding a hijacked session and CSRF token can repeatedly POST guesses to /api/user/remove-twofactor to permanently disable the victim's 2FA.
Title phpMyFAQ 4.2.0-alpha.2 before 4.2.0-beta 2FA Brute-Force via remove-twofactor Endpoint
First Time appeared Phpmyfaq
Phpmyfaq phpmyfaq
Weaknesses CWE-307
CPEs cpe:2.3:a:phpmyfaq:phpmyfaq:*:*:*:*:*:*:*:*
Vendors & Products Phpmyfaq
Phpmyfaq phpmyfaq
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N'}

cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-307

    Improper Restriction of Excessive Authentication Attempts

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 18, 2026, 1:25 PM
Reserved
Oct 17, 2026, 12:15 PM
Status
Deferred
Published
Oct 17, 2026, 7:16 PM
Modified
Oct 18, 2026, 2:16 PM