FacturaScripts Vulnerable to Unauthenticated phpinfo() Disclosure via Installer Endpoint
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.
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)
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:
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.
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:
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;
}
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality low, integrity none, availability none.
The score comes from this vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
CVE-2026-42878 is classified as CWE-200: Exposure of Sensitive Information. Information that should stay internal is disclosed to someone who is not authorised to see it.
CVE-2026-42878 is recorded against 2 packages.
Published on 7 May 2026 and last revised on 9 June 2026. No public exploit is currently recorded for this entry. Record sourced from NVD.
github.com (Web)
nvd.nist.gov (Advisory)
github.com (Package)
facturascripts/facturascripts has other advisories on record. If you are patching this one, these are worth checking on the same host:
These advisories are the same class of weakness (CWE-200: Exposure of Sensitive Information) in other software:
Details
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| facturascripts/facturascripts | 2026 | — |
| unknown | — | — |
References
Similar Threats
Vulnerability Monitoring
CVE-2026-42878 is rated CVSS 5.3 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.
Set Up Free Alerts →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.
Stay up to date with the latest from Boteraser.
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
CloudFlare provides web performance and security solutions, enhancing site speed and protecting against threats.
Service URL: developers.cloudflare.com (opens in a new window)
These cookies are needed for adding comments on this website.
These cookies are used for managing login functionality on this website.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Google Analytics is a powerful tool that tracks and analyzes website traffic for informed marketing decisions.
Service URL: policies.google.com (opens in a new window)
You can find more information in our Cookie Policy and Privacy Policy.