Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. facturascripts/facturascripts
  4. ›
  5. CVE-2026-47677

CVE-2026-47677: FacturaScripts: Account takeover of any 2FA-enabled user

July 13, 2026

Core/Controller/Login.php::twoFactorValidationAction() accepts an unauthenticated POST containing only fsNick and fsTwoFactorCode. If the TOTP value matches, the server issues a full fsNick + fsLogkey session cookie pair. The handler:

  1. Does not verify the password — the user is not required to have just completed loginAction.
  2. Does not call validateFormToken() — no CSRF token is required (every other action handler in the same file does call it).
  3. Does not call userHasManyIncidents() before processing — loginAction and changePasswordAction both check this guard before doing work; the 2FA handler only writes to the incident list after a failure, and the incident list is consulted by loginAction / changePasswordAction but not by the 2FA handler itself. The endpoint therefore has no rate-limiting at all.

Combined with TwoFactorManager::VERIFICATION_WINDOW = 8 (google2fa default is 1), 17 distinct six-digit codes are valid simultaneously and each remains valid for ~4 minutes. The expected number of guesses to land a valid code is

N ≈ ln(0.5) / ln(1 − 17 / 10⁶) ≈ 40 800 attempts (50% success)

On a default LAMP install a single-laptop attacker sustains ~400 RPS from one source IP — a few minutes per account.

The vulnerability gives complete account takeover of any 2FA-enabled user to any unauthenticated network attacker who knows the target’s nick. Admin nicks are typically public information (admin, the company name, the person’s initials).

References

  • github.com/NeoRazorX/facturascripts/releases/tag/v2026.3
  • github.com/NeoRazorX/facturascripts/security/advisories/GHSA-c67f-gmxw-mj93
  • github.com/advisories/GHSA-c67f-gmxw-mj93
  • nvd.nist.gov/vuln/detail/CVE-2026-47677

Code Behaviors & Features

Detect and mitigate CVE-2026-47677 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2026.3.0

Fixed versions

  • 2026.3.0

Solution

Upgrade to version 2026.3.0 or above.

Impact 9.4 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L

Learn more about CVSS

Weakness

  • CWE-287: Improper Authentication

Source file

packagist/facturascripts/facturascripts/CVE-2026-47677.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 09 Aug 2026 12:18:19 +0000.