Medium

HAX CMS vulnerable to Local File Inclusion via saveOutline API Location Parameter

  • Disclosed: 09.06.2025
  • Updated: 11.10.2026 10:22

Summary

An authenticated Local File Inclusion (LFI) vulnerability in the HAXCMS saveOutline endpoint allows a low-privileged user to read arbitrary files on the server by manipulating the location field written into site.json. This enables attackers to exfiltrate sensitive system files such as /etc/passwd, application secrets, or configuration files accessible to the web server (www-data).

Details

The vulnerability stems from the way the HAXCMS backend handles the location field in the site's outline. When a user sends a POST request to /system/api/saveOutline, the backend stores the provided location value directly into the site.json file associated with the site, without validating or sanitizing the input.

Later the location parameter is interpreted by the CMS like in HAXCMSSite.php line 1248 to resolve and load the content for a given node. If the location field contains a relative path like ../../../etc/passwd, the application will attempt to read and render that file.

PoC

  1. Authenticate to the CMS and retrieve the JWT and CSRF token.

  2. Issue a POST request to /system/api/saveOutline with the path traversal injection via the location parameter :

<img width="839" alt="LFI" src="https://github.com/user-attachments/assets/91b1bb7f-9248-40d2-81fc-f839beb4d39c" />
  1. Curl the website root to see the file contents.

passwd

Impact

This is an authenticated Local File Inclusion (LFI) vulnerability, via the location parameter the attacker can read any file on the filesystem that is accessible by the www-data user.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Composer package elmsln/haxcms < 11.0.0 11.0.0

References

CVSS score 6.5/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Weakness (CWE)
CWE-22, CWE-73
Platform
Composer
Package
elmsln/haxcms
Disclosed
09.06.2025
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-hxrr-x32w-cg8g - CC BY 4.0

Vulnerability history: elmsln/haxcms

All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
4
First → latest
06.2025 07.2025
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 2
  • Medium 2

Disclosures per year

  1. 2025: 4
  2. 2026: 0
  1. High · 8.3 CVE-2025-54378 < 11.0.14 11.0.14
  2. Medium · 4.3 CVE-2025-54139 < 11.0.8 11.0.8
  3. HAX CMS vulnerable to Local File Inclusion via saveOutline API Location Parameter this entry
    Medium · 6.5 CVE-2025-49138 < 11.0.0 11.0.0
  4. High · 8.5 CVE-2025-49137 < 11.0.0 11.0.0

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.