GHSA-hxrr-x32w-cg8g

Suggest an improvement
Source
https://github.com/advisories/GHSA-hxrr-x32w-cg8g
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/06/GHSA-hxrr-x32w-cg8g/GHSA-hxrr-x32w-cg8g.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-hxrr-x32w-cg8g
Aliases
Related
Published
2025-06-09T17:47:06Z
Modified
2025-06-09T22:05:41.661599Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
HAX CMS vulnerable to Local File Inclusion via saveOutline API Location Parameter
Details

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.

Database specific
{
    "nvd_published_at": "2025-06-09T21:15:47Z",
    "cwe_ids": [
        "CWE-22",
        "CWE-73"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2025-06-09T17:47:06Z"
}
References

Affected packages

Packagist / elmsln/haxcms

Package

Name
elmsln/haxcms
Purl
pkg:composer/elmsln/haxcms

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
11.0.0

Affected versions

0.*

0.0.1
0.1.0
0.2.0
0.3.0
0.4.0
0.5.0
0.6.0
0.7.0
0.8.0
0.8.1
0.8.2
0.9.0
0.11.0
0.12.0
0.12.1
0.12.2
0.12.3