Skip to main content

FacturaScripts EUVDEUVD-2026-32625

| CVE-2026-42878 MEDIUM
Information Exposure (CWE-200)
2026-05-07 https://github.com/NeoRazorX/facturascripts GHSA-vrxf-vrc4-22p7
5.3
CVSS 3.1 · Vendor: https://github.com/NeoRazorX/facturascripts
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Network discovery of FacturaScripts deployment
  2. Delivery
    Send GET /?phpinfo=TRUE request
  3. Exploit
    Installer controller receives unauthenticated request
  4. Install
    Executes phpinfo() function
  5. C2
    Returns full PHP configuration output
  6. Execute
    Attacker parses environment variables for secrets
  7. Impact
    Attacker 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

facturascripts < v2026

Affected Packages

composer facturascripts/facturascripts no fix

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

Vendor (https://github.com/NeoRazorX/facturascripts) PRIMARY 5.3 MEDIUM
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

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

EPSS Score
0.0%
Top 88% exploitable
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

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

CVE-2012-1823 CRITICAL POC
9.8 May 11

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

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

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

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

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

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy