Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-hxrr-x32w-cg8g

Опубликовано: 09 июн. 2025
Источник: github
Github: Прошло ревью
CVSS3: 6.5

Описание

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

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 :

LFI
  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.

Пакеты

Наименование

elmsln/haxcms

composer
Затронутые версииВерсия исправления

< 11.0.0

11.0.0

EPSS

Процентиль: 22%
0.0007
Низкий

6.5 Medium

CVSS3

Дефекты

CWE-22
CWE-73

Связанные уязвимости

CVSS3: 6.5
nvd
8 месяцев назад

HAX CMS PHP allows users to manage their microsite universe with a PHP backend. Prior to version 11.0.0, 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). 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 to resolve and load the content for a given node. If the location field contains a relative path like `../../../etc/passwd`, the applicati

EPSS

Процентиль: 22%
0.0007
Низкий

6.5 Medium

CVSS3

Дефекты

CWE-22
CWE-73