CVE-2026-63190

FearlessCMS: Unauthenticated debug scripts expose filesystem operations and XSS

Published Oct 28, 2026 CVSS 3.1 · 9.4 Critical EPSS < 1% KEV · Not listed
Description
FearlessCMS is a flat-file `content` management system centered on simplicity and open source. Prior to version 0.1.4, five debug/test PHP scripts under `admin/` perform privileged operations without `isLoggedIn()` authentication checks, CSRF protection or adequate `path` validation. On PHP's built-in development server, including the default Docker deployment, `router.php` checks an unnormalized admin URI prefix while the filesystem resolves dot segments, so `/./admin/` bypasses the admin login gate and executes those scripts directly. In `admin/debug_save_flow.php`, attacker-controlled `path` and `content` reach `file_put_contents` for arbitrary `.md` writes under `content`/ or outside it through `path` traversal, enabling site defacement and stored JavaScript in public pages; `print_r($_POST)` output without `htmlspecialchars` escaping also causes reflected cross-site scripting. The `admin/debug_content.php` `path` parameter reaches `scandir()`, `file_get_contents()` and `posix_getpwuid()`, permitting arbitrary directory enumeration and `.md` file reads that expose absolute paths, ownership, permissions, hashes and `content` previews. The `admin/preview-handler.php` endpoint accepts JSON `content` and `title` and writes enumerable files under `content/_preview/`, enabling stored cross-site scripting and disk exhaustion. The `admin/testdebug.php` endpoint appends to `admin/testdebug.log` without authentication, also enabling disk exhaustion. The `admin/test_redirect.php` script exposes a test artifact but escapes its inputs and is not itself an XSS sink. Stored script execution can steal sessions and compromise administrators when they view affected `content`. Reads and writes execute with PHP's privileges; the tested deployment runs PHP as root, amplifying filesystem impact. This issue is fixed in version 0.1.4.

Analysis

AI-generated

Technical impact

The vulnerability is caused by five debug and test scripts located under the admin directory that lack authentication, CSRF protection, and proper path sanitization. These scripts allow an unauthenticated attacker to write arbitrary Markdown files, enumerate directories, read file contents, and execute stored JavaScript, leading to site defacement, credential theft, and potential session hijacking. The scripts also permit disk‑exhaustion attacks by appending to log files or writing many preview files. These weaknesses correspond to CWE‑200 (Information Disclosure), CWE‑22 (Path Traversal), CWE‑288 (Insecure Direct Object Reference), CWE‑306 (Missing Authentication), and CWE‑79 (Cross‑Site Scripting).

Affected Systems

FearlessCMS installations running any version earlier than 0.1.4 are affected. The vulnerability is present in the repository prior to the 0.1.4 release and also manifests when the default Docker image or PHP built‑in development server is used, allowing direct HTTP access to the admin/debug_* endpoints.

Risk and Exploitability

The CVSS score of 9.4 reflects the severity of this flaw. Because the scripts are exposed over HTTP without authentication, an attacker can exploit the vulnerability from any network that can reach the target, making the attack vector Remote. The EPSS score is not available, and the flaw is not listed in the CISA KEV catalog. Exploitation is straightforward: send crafted HTTP POST or GET requests to the debug endpoints, optionally using path traversal to write files outside the content directory. The PHP process runs as root in the tested deployment, amplifying the impact of arbitrary file writes and reads.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade FearlessCMS to version 0.1.4 or later, where all debug scripts have been removed and input validation is added.
  • If an upgrade is not immediately possible, delete or move the admin/debug_* and admin/testdebug.php files from the live environment to prevent external access.
  • Reconfigure the Docker container or PHP deployment to run the web process as a non‑root user and set strict file permissions on the content directory.

Generated by OpenCVE AI on October 28, 2026 at 20:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Fearlessgeekmedia
Fearlessgeekmedia fearlesscms
Vendors & Products Fearlessgeekmedia
Fearlessgeekmedia fearlesscms
Type Values Removed Values Added
Description FearlessCMS is a flat-file `content` management system centered on simplicity and open source. Prior to version 0.1.4, five debug/test PHP scripts under `admin/` perform privileged operations without `isLoggedIn()` authentication checks, CSRF protection or adequate `path` validation. On PHP's built-in development server, including the default Docker deployment, `router.php` checks an unnormalized admin URI prefix while the filesystem resolves dot segments, so `/./admin/` bypasses the admin login gate and executes those scripts directly. In `admin/debug_save_flow.php`, attacker-controlled `path` and `content` reach `file_put_contents` for arbitrary `.md` writes under `content`/ or outside it through `path` traversal, enabling site defacement and stored JavaScript in public pages; `print_r($_POST)` output without `htmlspecialchars` escaping also causes reflected cross-site scripting. The `admin/debug_content.php` `path` parameter reaches `scandir()`, `file_get_contents()` and `posix_getpwuid()`, permitting arbitrary directory enumeration and `.md` file reads that expose absolute paths, ownership, permissions, hashes and `content` previews. The `admin/preview-handler.php` endpoint accepts JSON `content` and `title` and writes enumerable files under `content/_preview/`, enabling stored cross-site scripting and disk exhaustion. The `admin/testdebug.php` endpoint appends to `admin/testdebug.log` without authentication, also enabling disk exhaustion. The `admin/test_redirect.php` script exposes a test artifact but escapes its inputs and is not itself an XSS sink. Stored script execution can steal sessions and compromise administrators when they view affected `content`. Reads and writes execute with PHP's privileges; the tested deployment runs PHP as root, amplifying filesystem impact. This issue is fixed in version 0.1.4.
Title FearlessCMS: Unauthenticated debug scripts expose filesystem operations and XSS
Weaknesses CWE-200
CWE-22
CWE-288
CWE-306
CWE-79
References
Metrics cvssV3_1

{'score': 9.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L'}

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-288

    Authentication Bypass Using an Alternate Path or Channel

  • CWE-306

    Missing Authentication for Critical Function

  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 29, 2026, 6:35 PM
Reserved
Jul 15, 2026, 10:13 PM
Status
Deferred
Published
Oct 28, 2026, 8:18 PM
Modified
Oct 29, 2026, 7:17 PM