Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconNetwork discovery of FacturaScripts deployment
-
DeliverySend GET /?phpinfo=TRUE request
-
ExploitInstaller controller receives unauthenticated request
-
InstallExecutes phpinfo() function
-
C2Returns full PHP configuration output
-
ExecuteAttacker parses environment variables for secrets
-
ImpactAttacker uses disclosed credentials for secondary attacks
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK
2 techniques across 2 tactics: Collection, Discovery The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the application to be a fresh FacturaScripts deployment where the installation process has not yet been completed (config.php does not contain the db_name configuration key). The Installer controller must be accessible over HTTP/HTTPS and respond to the /?phpinfo=TRUE query parameter. No authentication, user interaction, or special configuration is required beyond a standard PHP environment serving the FacturaScripts codebase. The vulnerability is limited by: (1) deployment phase (only fresh installations are vulnerable; completed deployments may not be), (2) network accessibility (the Installer endpoint must be reachable from the attacker's network), and (3) PHP environment (phpinfo() output availability depends on PHP being installed and functional). Default configurations are vulnerable; no non-standard setup is required. |
| Impact | CVSS score of 5.3 (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N) indicates low network complexity and no authentication required, but only low confidentiality impact in the official vector. However, this underscores real-world risk: the vulnerability allows complete environment disclosure which can include high-value secrets (database passwords, API keys, AWS credentials). EPSS and KEV status are not provided in the input data, but the existence of weaponizable proof-of-concept code and the straightforward nature of exploitation (simple HTTP GET request) suggests genuine operational risk. The limiting factor is deployment context: the vulnerability only triggers on fresh installations where config.php has not yet been populated with database configuration, meaning many production instances are outside the vulnerable window. Nevertheless, fresh deployments are frequently left unconfigured for extended periods in shared hosting and cloud environments, creating a reliable exploitation window. No patch version is available, elevating risk for organizations unable to immediately apply workarounds. The CVSS score understates information disclosure risk because phpinfo() output enables secondary attacks: filesystem paths enable targeted path traversal attempts, exact PHP version enables version-specific CVE chaining, and environment variables expose secrets that grant direct database or API access. |
| Exploit ScenarioDerived | An attacker discovers a fresh FacturaScripts deployment (via port scanning or network enumeration) or gains knowledge of a planned deployment on a target domain. The attacker sends a single HTTP GET request 'GET /?phpinfo=TRUE HTTP/1.1' to the target. The application's Installer controller processes the request, executes phpinfo(), and returns 20+ pages of detailed PHP and server configuration directly to the attacker without requiring authentication, login, or any prior interaction. Within seconds, the attacker has obtained database credentials, API keys, filesystem paths, and exact PHP version information, enabling follow-up attacks such as direct database compromise, AWS credential theft, or version-specific PHP exploits. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 07, 2026
Unauthenticated information disclosure in FacturaScripts allows remote attackers to trigger phpinfo() output on fresh deployments via /?phpinfo=TRUE, exposing full PHP configuration, environment variables (including database credentials and API keys), filesystem paths, and loaded extensions. The vulnerability affects all versions with the Installer controller enabled and no patch has been released as of April 2026; publicly available proof-of-concept code exists demonstrating exploitation against PHP 8.1.34.
RemediationAI
Immediately remove lines 115-118 from Core/Controller/Installer.php containing the phpinfo query parameter check: the conditional block 'if ('TRUE' === $this->request->query('phpinfo', '')) { phpinfo(); return; }' must be deleted entirely. After removing the code, redeploy the application and verify by testing the /?phpinfo=TRUE request - it should return a normal page response, not phpinfo() output. Until a vendor-released patch is available, enforce network-level access controls: restrict HTTP access to the installer endpoint (/) to administratively-controlled IP ranges using a reverse proxy, WAF, or network firewall; alternatively, block the application entirely from public internet access until installation is completed and config.php is properly configured. If the application must remain public during setup, apply HTTP authentication (Basic Auth or similar) to the / path via reverse proxy to require credentials before any request reaches the application. As a defense-in-depth measure, avoid storing secrets in environment variables and use a dedicated secrets management system; however, this does not remediate the vulnerability itself. The most critical action is code removal followed by deployment verification.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in composer
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
FacturaScripts is a PHP-based open-source accounting and invoicing application distributed via Composer. The vulnerability resides in Core/Controller/Installer.php (~line 115), where an unauthenticated GET parameter 'phpinfo=TRUE' triggers PHP's phpinfo() function directly without authentication checks. This debug feature was intentionally added in commit 8c31c106 on February 27, 2018, and persists in the codebase for over eight years. The root cause is CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor), specifically allowing an attacker to read the full output of phpinfo() which includes environment variables, $_SERVER array contents, loaded extensions, and PHP configuration directives. The vulnerability is particularly severe because environment variables commonly store database credentials, API keys, and application secrets in containerized and cloud deployments.
Know when PHP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Primary rating from Vendor (https://github.com/NeoRazorX/facturascripts) · only source for this CVE.
CVSS VectorVendor: https://github.com/NeoRazorX/facturascripts
DescriptionCVE.org
Summary
An unauthenticated information disclosure vulnerability in the Installer controller allows any remote attacker to trigger phpinfo() on a fresh FacturaScripts deployment by requesting /?phpinfo=TRUE, exposing full PHP configuration, server environment variables (including any database credentials, API keys, or application secrets set as env vars), filesystem paths, and loaded extensions without being authenticated.
Details
The phpinfo() debug endpoint was intentionally added in commit 8c31c106 ("Added phpinfo option to the installer") on February 27, 2018, and has remained in the codebase for over 8 years across multiple major versions.
The feature appears to have been added as a convenience tool to help users diagnose PHP configuration during installation. However, it exposes sensitive server information to any unauthenticated attacker who knows the parameter.
Vulnerable code (Core/Controller/Installer.php ~line 115):
if ('TRUE' === $this->request->query('phpinfo', '')) { phpinfo(); return; }
This vulnerability is of the same class as CVE-2025-34081 (CONPROSYS HMI System unauthenticated phpinfo() exposure), which received a CVE assignment.
Introduced: commit 8c31c1060581ad6ad591c7689da3a8df8a29f486 (Feb 27 2018) Still present: v2026-39-g262e79208 (confirmed April 2026)
PoC
Prerequisites: Fresh FacturaScripts deployment where installation has not yet been completed (config.php does not contain db_name).
Step 1 - Clone and serve the application: git clone https://github.com/NeoRazorX/facturascripts cd facturascripts php -S localhost:8000
Step 2 - Send the following unauthenticated GET request: GET /?phpinfo=TRUE HTTP/1.1 Host: localhost:8000
Step 3 - Observe full phpinfo() output returned (20+ pages) containing:
- Complete PHP configuration
- All server environment variables
- Filesystem paths
- Loaded extensions and versions
- HTTP request headers
No credentials, cookies, or prior interaction required.
Tested on: PHP 8.1.34, macOS, fresh clone with no configuration applied. Proof of concept screenshot/PDF available.
Impact
Vulnerability type: Unauthenticated Information Disclosure (CWE-200)
Any unauthenticated remote attacker who can reach a freshly deployed FacturaScripts instance before installation is completed can retrieve the full PHP environment. On production deployments this includes:
- Database credentials (DB_PASSWORD, DB_USER) if set as environment variables
- Application secrets (APP_KEY, JWT secrets) if set as environment variables
- Cloud provider credentials (AWS_SECRET_ACCESS_KEY, etc.) if present
- Full server filesystem paths enabling targeted path traversal attempts
- Exact PHP version and loaded extensions enabling version-specific attacks
- All HTTP headers revealing internal infrastructure details
- Database connection configuration (mysqli default socket, PDO drivers)
- Exact PHP version enabling version-specific CVE targeting (PHP 8.1.34)
Fresh deployments are commonly left unconfigured for extended periods on shared hosting and cloud environments, making this window reliably exploitable in real-world scenarios.
Fix: Remove lines 115-118 from Core/Controller/Installer.php:
if ('TRUE' === $this->request->query('phpinfo', '')) { phpinfo(); return; }
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-32625
GHSA-vrxf-vrc4-22p7
NVD
CVE.org
EPSS
Exploit-DB