FacturaScripts: Account takeover of any 2FA-enabled user (CVE-2026-47677)
FacturaScripts contains a critical authentication bypass vulnerability in its two-factor authentication (2FA) validation endpoint. The endpoint accepts unauthenticated POST requests with only a username and TOTP code, without verifying the user's password or requiring CSRF protection. It also lacks rate limiting, allowing brute force attacks against the 2FA codes. Due to an extended verification window, multiple valid codes exist simultaneously, making brute forcing feasible within minutes. Successful exploitation results in complete account takeover of any 2FA-enabled user, including administrators. The vulnerability affects versions prior to 2026.3 and has a CVSS 4.0 base score of 9.3 (critical).
AI Analysis
Technical Summary
The vulnerability exists in FacturaScripts' Core/Controller/Login.php method twoFactorValidationAction(), which processes 2FA validation without requiring password verification or CSRF tokens, and without rate limiting. The verification window for TOTP codes is set to 8, allowing approximately 17 valid codes at once, increasing the chance of guessing a valid code. An attacker who knows a target's username (nick) can brute force the 2FA code via unauthenticated POST requests to /login?action=two-factor-validation. This leads to full session cookie issuance and complete account takeover. The vulnerability is present in all versions before 2026.3. A public proof-of-concept exploit exists demonstrating the attack.
Potential Impact
An unauthenticated remote attacker can completely bypass two-factor authentication and gain full access to any 2FA-enabled user account by brute forcing valid TOTP codes. This includes administrative accounts, which typically have publicly guessable usernames. The attacker gains full read and write privileges as the compromised user, potentially exposing sensitive data and allowing unauthorized actions. The vulnerability also enables targeted denial-of-service by locking out legitimate users after repeated failed attempts. The overall impact is critical, compromising confidentiality and integrity with minimal availability impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should consider disabling 2FA or restricting access to the vulnerable endpoint if possible. Monitoring for unusual authentication attempts and applying external rate limiting may help mitigate brute force attacks. Avoid exposing the 2FA validation endpoint publicly. Follow vendor updates closely for an official patch or temporary mitigations.
FacturaScripts: Account takeover of any 2FA-enabled user (CVE-2026-47677)
Description
FacturaScripts contains a critical authentication bypass vulnerability in its two-factor authentication (2FA) validation endpoint. The endpoint accepts unauthenticated POST requests with only a username and TOTP code, without verifying the user's password or requiring CSRF protection. It also lacks rate limiting, allowing brute force attacks against the 2FA codes. Due to an extended verification window, multiple valid codes exist simultaneously, making brute forcing feasible within minutes. Successful exploitation results in complete account takeover of any 2FA-enabled user, including administrators. The vulnerability affects versions prior to 2026.3 and has a CVSS 4.0 base score of 9.3 (critical).
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in FacturaScripts' Core/Controller/Login.php method twoFactorValidationAction(), which processes 2FA validation without requiring password verification or CSRF tokens, and without rate limiting. The verification window for TOTP codes is set to 8, allowing approximately 17 valid codes at once, increasing the chance of guessing a valid code. An attacker who knows a target's username (nick) can brute force the 2FA code via unauthenticated POST requests to /login?action=two-factor-validation. This leads to full session cookie issuance and complete account takeover. The vulnerability is present in all versions before 2026.3. A public proof-of-concept exploit exists demonstrating the attack.
Potential Impact
An unauthenticated remote attacker can completely bypass two-factor authentication and gain full access to any 2FA-enabled user account by brute forcing valid TOTP codes. This includes administrative accounts, which typically have publicly guessable usernames. The attacker gains full read and write privileges as the compromised user, potentially exposing sensitive data and allowing unauthorized actions. The vulnerability also enables targeted denial-of-service by locking out legitimate users after repeated failed attempts. The overall impact is critical, compromising confidentiality and integrity with minimal availability impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should consider disabling 2FA or restricting access to the vulnerable endpoint if possible. Monitoring for unusual authentication attempts and applying external rate limiting may help mitigate brute force attacks. Avoid exposing the 2FA validation endpoint publicly. Follow vendor updates closely for an official patch or temporary mitigations.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-c67f-gmxw-mj93
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-47677"]
- Ecosystems
- ["Packagist"]
- Database Specific Severity
- CRITICAL
- Cvss Version
- 4.0
Threat ID: 6a55ff8968715ace432f46e8
Added to database: 07/14/2026, 09:21:13 UTC
Last enriched: 07/14/2026, 09:45:47 UTC
Last updated: 07/31/2026, 20:30:04 UTC
Views: 53
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.