phpMyFAQ Two-Factor Authentication Bypass Vulnerability via Unauthenticated Brute-Force on TOTP Codes

Vulnerability

A vulnerability in phpMyFAQ versions prior to 4.1.2 allows unauthenticated attackers to bypass two-factor authentication by brute-forcing users' TOTP codes. This issue arises from the /admin/check endpoint, which accepts arbitrary user-id parameters without session verification or rate limiting. Attackers can exploit this flaw by sending POST requests with sequential token values, gaining full administrative access on the platform.

Impact

Exploiting this vulnerability allows attackers to bypass two-factor authentication for any user, including administrators, and gain full administrative rights on the phpMyFAQ platform.

Reproduction

To reproduce this vulnerability, send a POST request to the /admin/check endpoint with a user-id and a token value. The endpoint will accept the request without authentication, allowing for brute-force attacks on the TOTP codes. This can be done manually or automated with a script that sends multiple requests in a short period.

Remediation

Users are advised to update phpMyFAQ to version 4.1.2 or later, where this vulnerability has been patched.

Added: May 15, 2026, 7:35 PM
Updated: May 15, 2026, 7:35 PM

Vulnerability Rating

Custom Algorithm
spread
3.1
impact
5.0
exploitability
9.1
remediation
7.7
relevance
8.4
threat
6.4
urgency
2.9
incentive
8.3

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.