Skip to main content
Vulnerability Database/CVE-2024-33371

CVE-2024-33371: DedeCMS Cross Site Scripting Vulnerability

CVE-2024-33371 is a cross site scripting flaw in DedeCMS v.5.7.113 that allows remote attackers to execute arbitrary code via the typeid parameter. This article covers technical details, impact analysis, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2024-33371 Overview

CVE-2024-33371 is a reflected Cross-Site Scripting (XSS) vulnerability in DedeCMS version 5.7.113. The flaw resides in the makehtml_list_action.php component, where the typeid parameter is not properly sanitized before being reflected in the response. A remote attacker can craft a malicious URL that, when visited by an authenticated administrator, executes arbitrary JavaScript in the victim's browser session. The weakness is tracked under [CWE-79] (Improper Neutralization of Input During Web Page Generation).

Critical Impact

Successful exploitation allows attackers to hijack administrator sessions, steal credentials, or perform actions on behalf of the authenticated user within the DedeCMS back-end.

Affected Products

  • DedeCMS 5.7.113
  • Deployments exposing the /dede/makehtml_list_action.php administrative endpoint
  • Any site running the vulnerable DedeCMS build without input filtering on typeid

Discovery Timeline

  • 2024-04-30 - CVE-2024-33371 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-33371

Vulnerability Analysis

The vulnerability is a reflected XSS flaw in the administrative HTML generation workflow of DedeCMS. The makehtml_list_action.php script accepts a typeid GET or POST parameter that controls which content category is being rebuilt. The application echoes this parameter value back to the HTTP response without applying contextual output encoding or input validation.

An attacker who tricks an authenticated administrator into clicking a crafted link can execute JavaScript in the context of the DedeCMS management interface. Because the attack requires user interaction and runs in the browser, impact is scoped to confidentiality and integrity of the administrator's session rather than direct server compromise. The EPSS probability currently sits below one percent, indicating low observed exploitation activity.

Root Cause

The root cause is missing input sanitization and output encoding on the typeid parameter inside makehtml_list_action.php. The parameter flows from the HTTP request into HTML output without passing through DedeCMS's escaping routines, allowing script content to break out of the intended attribute or text context.

Attack Vector

Exploitation is network-based and requires an authenticated administrator to interact with an attacker-supplied link. The adversary delivers a URL containing a crafted typeid payload through phishing, forum posts, or chat. When the administrator loads the URL while logged into the DedeCMS back-end, the injected script runs with the administrator's privileges in the browser.

No verified public proof-of-concept is available. Refer to the Gitee CVE Issue Discussion for technical details reported by the submitter.

Detection Methods for CVE-2024-33371

Indicators of Compromise

  • Web server access logs showing requests to makehtml_list_action.php with typeid values containing <script>, onerror=, javascript:, or URL-encoded equivalents such as %3Cscript%3E.
  • Referrer headers from unexpected external domains preceding administrative actions in DedeCMS.
  • Unusual administrator-initiated actions (new accounts, template edits) immediately following a suspicious request to the vulnerable endpoint.

Detection Strategies

  • Deploy web application firewall rules that inspect the typeid query and body parameter for script tags, event handlers, and encoded payloads.
  • Correlate authenticated admin sessions with anomalous outbound requests triggered from the DedeCMS admin interface.
  • Review DedeCMS audit logs for configuration or template changes that lack an interactive justification.

Monitoring Recommendations

  • Alert on any HTTP 200 response to /dede/makehtml_list_action.php where the request parameters contain HTML metacharacters.
  • Monitor administrator browser telemetry for unexpected JavaScript errors or cross-origin requests originating from the admin panel.
  • Centralize web and application logs in a SIEM to retain evidence of reflected XSS probes across the DedeCMS fleet.

How to Mitigate CVE-2024-33371

Immediate Actions Required

  • Restrict access to the /dede/ administrative directory using IP allow-lists or VPN-only reachability.
  • Enforce short administrator session lifetimes and require re-authentication for sensitive back-end operations.
  • Educate administrators to avoid clicking untrusted links while an active DedeCMS admin session is open.

Patch Information

No vendor patch is referenced in the NVD entry for DedeCMS 5.7.113 at the time of publication. Operators should monitor the Gitee CVE Issue Discussion and official DedeCMS release channels for a fixed version, and apply upgrades as soon as a corrected build is available.

Workarounds

  • Add server-side validation that constrains typeid to numeric values before processing in makehtml_list_action.php.
  • Deploy a Content Security Policy (CSP) on the admin interface to block inline script execution and restrict script sources.
  • Configure a WAF rule to drop requests to the vulnerable endpoint when parameters contain HTML or JavaScript metacharacters.
bash
# Example ModSecurity rule to block script payloads in typeid
SecRule REQUEST_URI "@contains /dede/makehtml_list_action.php" \
    "id:1003371,phase:2,deny,status:403,\
    chain,msg:'CVE-2024-33371 XSS attempt on typeid'"
  SecRule ARGS:typeid "@rx (?i)(<script|onerror=|javascript:|%3Cscript)" \
    "t:none,t:urlDecodeUni"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.