Executive brief
FacturaScripts, an open-source ERP and accounting system, contains a security flaw that allows unauthorized users to download private business documents. By manipulating web addresses, an attacker can bypass security checks to access sensitive files like customer invoices, supplier records, and database backups. This could lead to a significant leak of confidential financial data and customer information.
Technical details
A path traversal vulnerability exists in FacturaScripts' static file controllers, specifically 'Core/Controller/Files.php' and 'Core/Controller/Myfiles.php'. The application validates access by performing prefix checks (strpos/substr) on the raw URL string rather than the canonicalized filesystem path. An attacker can use '../' segments in a request starting with an allow-listed prefix (e.g., '/Plugins/') to access files in restricted directories like 'MyFiles/Private/'. This bypasses the 'myft' token requirement for private files, provided the file extension is on the allowed list (pdf, sql, zip, etc.). The vulnerability is confirmed in version 2026.2 and the master branch.
Affected products
- NeoRazorX FacturaScripts <= 2026.2
Timeline
- 2026-05-11: other: Vulnerability confirmed on master branch commit de01369
- 2026-07-14: advisory: GitHub Advisory published