# FacturaScripts: Account takeover of any 2FA-enabled user

Critical severity, published 2026-07-13. Update facturascripts/facturascripts to 2026.3 or later: composer update facturascripts/facturascripts.

Canonical URL: https://buzzphp.com/security/ghsa-c67f-gmxw-mj93 · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | critical |
| Published | 2026-07-13 |
| Updated | 2026-07-13 |
| CVE | [CVE-2026-47677](https://nvd.nist.gov/vuln/detail/CVE-2026-47677) |
| GHSA | [GHSA-c67f-gmxw-mj93](https://github.com/advisories/GHSA-c67f-gmxw-mj93) |
| Weakness | CWE-287 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| facturascripts/facturascripts | <= 2026.2 | 2026.3 |

## What to do

Update facturascripts/facturascripts to 2026.3 or later: composer update facturascripts/facturascripts.

Check which version you run with `composer show facturascripts/facturascripts`, and every affected package with `composer audit`.

## About this advisory

Authentication bypass in FacturaScripts: /login?action=two-factor-validation accepts brute-forceable TOTP without password or CSRF protection

Summary

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.

## Links

- [GHSA-c67f-gmxw-mj93 on GitHub](https://github.com/advisories/GHSA-c67f-gmxw-mj93)
- [CVE-2026-47677 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-47677)
- [All Composer security advisories](https://buzzphp.com/security)
