Mittel

FacturaScripts Vulnerable to Unauthenticated phpinfo() Disclosure via Installer Endpoint

  • Veröffentlicht: 07.05.2026
  • Aktualisiert: 11.10.2026 10:22

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):

php
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:

php
if ('TRUE' === $this->request->query('phpinfo', '')) {
    phpinfo();
    return;
}

Betroffene Software

Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.

PlattformPaketAnfällige VersionenBehoben in
Composer-Paket facturascripts/facturascripts >= 2026, <= 2026.1 keine Korrektur

Verweise

CVSS-Wert 5.3/10
CVSS-Vektor
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Schwäche (CWE)
CWE-200
Plattform
Composer
Paket
facturascripts/facturascripts
Veröffentlicht
07.05.2026
Aktualisiert
11.10.2026 10:22

Quellen und Lizenzen

OSV / GitHub Advisory Database - GHSA-vrxf-vrc4-22p7 - CC BY 4.0

Schwachstellenhistorie: facturascripts/facturascripts

Alle veröffentlichten Schwachstellen dieses Pakets (Composer-Paket), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.

Alle (26) im Archiv
Einträge insgesamt
26
Erste → letzte
04.2022 07.2026
Ohne Fix
15
In Angriffen ausgenutzt
0

Verteilung nach Schweregrad

  • Kritisch 5
  • Hoch 7
  • Mittel 12
  • Niedrig 2

Veröffentlichungen pro Jahr

  1. 2022: 8
  2. 2023: 0
  3. 2024: 0
  4. 2025: 1
  5. 2026: 17
Schweregrad:
  1. Kritisch CVE-2026-47677 < 2026.3 2026.3
  2. FacturaScripts Vulnerable to Unauthenticated phpinfo() Disclosure via Installer Endpoint dieser Eintrag
    Mittel · 5.3 CVE-2026-42878 >= 2026, <= 2026.1 keine Korrektur
  3. Hoch CVE-2026-25514 < 2025.81 2025.81
  4. Hoch CVE-2026-25513 < 2025.81 2025.81
  5. Hoch CVE-2025-69210 < 2025.7, = 2025.11, = 2025.41, = 2025.43 2025.7
  6. Kritisch · 9.8 CVE-2022-1715 < 2022.08 2022.08
  7. Kritisch · 9.0 CVE-2022-1514 < 2022.06 2022.06

Erkennen Sie Schwachstellen in Ihrer Anwendung

Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.

Anwendung verbinden
DockRay Newsletter

Anwendungssicherheit in Ihrem Postfach

Wichtige Schwachstellen, konkrete Empfehlungen und praktische Tipps für Ihre Anwendungen. Wählen Sie Ihre Technologien und verfolgen Sie, was für Ihr Projekt relevant ist.

  • Eine tägliche Zusammenfassung neuer Schwachstellen, auch kritischer.
  • Benachrichtigungen über wichtige Updates.
  • Praktische Tipps zur Sicherheit und Überwachung von Anwendungen.

Leer lassen, um Meldungen zu allen Technologien zu erhalten.

Kostenlos anmelden. In jeder E-Mail mit einem Klick abmelden.