FacturaScripts Fixes Critical 2FA Takeover Flaw CVE-2026-47677
FacturaScripts patched CVE-2026-47677, a critical 9.3 CVSS authentication bypass letting attackers hijack 2FA-enabled accounts without a password.

Table of Contents
Key Takeaways
- CVE-2026-47677 carries a critical 9.3 CVSS v4.0 score across FacturaScripts versions prior to 2026.3.
- Attackers can bypass password checks entirely to hijack any account with two-factor authentication enabled.
- An oversized TOTP validation window allowed brute-force guessing in roughly 40,800 requests.
- Failed attempts inadvertently trigger a ten-minute denial-of-service lockout against legitimate account owners.
A critical authentication bypass flaw tracked as CVE-2026-47677 allows remote attackers to seize control of any two-factor authentication account in FacturaScripts without knowing the user password. The vulnerability carries a CVSS v4.0 score of 9.3 and impacts all deployments running version 2026.2 and earlier of the open-source enterprise resource planning and billing platform.
Published in December 2026 through the GitHub Advisory Database, the flaw stems from severe architectural oversights in the application secondary login handler. Project maintainers addressed the issue with the release of FacturaScripts version 2026.3, urging system administrators to patch immediately.
Technical Breakdown
The security failure sits inside the twoFactorValidationAction() method in Core/Controller/Login.php, which handles requests routed to the /login?action=two-factor-validation endpoint. Under normal authentication workflows, users submit their username and password before being redirected to enter a time-based one-time password. However, the secondary validation endpoint accepted raw unauthenticated HTTP POST requests containing only a target username in fsNick and a numeric code in fsTwoFactorCode.
The endpoint completely omitted prior password verification, allowing an attacker to initiate authentication against arbitrary accounts. Furthermore, the handler lacked cross-site request forgery checks by omitting validateFormToken() and bypassed incident tracking controls before evaluating codes. Because the system did not call userHasManyIncidents() before executing the TOTP comparison, rate limits failed to engage during high-speed guessing attacks.
A critical compounding factor was the software expanded verification window. FacturaScripts hardcoded VERIFICATION_WINDOW = 8 in its TwoFactorManager class, allowing 8 intervals before and 8 intervals after the current timestamp. This configuration made 17 distinct six-digit codes valid simultaneously over an approximate four-minute period. Attackers needed only around 40,800 attempts to achieve a 50 percent probability of hitting a valid code, requiring roughly two minutes over an unthrottled local or low-latency broadband connection.
An automated brute-force attempt also triggers a disruptive side effect. Failed authentication attempts write records to the application security log. Because the platform enforces MAX_INCIDENT_COUNT = 6 and INCIDENT_EXPIRATION_TIME = 600, an ongoing attack quickly accumulates incidents, locking the legitimate victim out of the standard login portal for ten minutes. Project maintainers have not disclosed whether threat actors exploited this vulnerability in the wild prior to disclosure, nor have they published estimates of exposed internet-facing instances.
Impact Matrix
| Field | Vulnerability Details |
|---|---|
| CVE / Advisory ID | CVE-2026-47677 / GHSA-c67f-gmxw-mj93 |
| Affected Software | FacturaScripts (Composer package facturascripts/facturascripts) |
| Affected Versions | Version 2026.2 and earlier |
| CVSS v4.0 Severity | 9.3 (Critical) |
| Exploitation Status | Disclosed; maintainers report no confirmed wild exploitation telemetry |
| Fixed Release | FacturaScripts 2026.3 |
| Primary Advisory | GitHub Advisory Database |
Multi-factor authentication must serve as a supplementary defense layer rather than an unauthenticated primary gate. Implementing wide verification tolerance windows without strict upstream password validation invalidates the entire identity assurance model.
— Texial Threat Research Desk
Immediate Actions
- Upgrade all FacturaScripts instances to version 2026.3 or later through your deployment pipeline or Composer package manager.
- If immediate patching is impossible, restrict perimeter access to
/login?action=two-factor-validationusing reverse proxy rules or web application firewalls. - Audit web server access logs for anomalous bursts of POST requests targeting the two-factor authentication validation route.
- Review user incident tables in the FacturaScripts database for repeated consecutive lockouts indicating brute-force exploration attempts.
- Enforce network-level IP allowlisting on administrative invoicing portals to block public exposure to unauthenticated attackers.
Frequently Asked Questions
What causes CVE-2026-47677 in FacturaScripts?
The endpoint directly processed TOTP codes with a username without requiring prior password authentication or CSRF tokens, while lacking rate limiting.
Why are 2FA-enabled accounts uniquely at risk?
Accounts with 2FA enabled trigger the secondary verification handler, which failed to verify whether a correct password had already been provided during login.
How did the verification window increase exploitability?
A window of eight steps allowed 17 codes to remain active simultaneously, reducing the brute-force search space to approximately 40,800 requests.
Does CVE-2026-47677 affect accounts without 2FA?
Accounts without two-factor authentication enabled are not affected by this specific bypass because the secondary validation routine is never invoked.
Keep your security team ahead of this threat.
Shreya Iyer
Cybersecurity policy and privacy reporter covering data breach disclosures, regulatory actions, and AI security governance for Texial Newsroom.


