Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2024-42758 PoC — DokuWiki 安全漏洞

Source
Associated Vulnerability
Title:DokuWiki 安全漏洞 (CVE-2024-42758)
Description:DokuWiki是DokuWiki开源的一个简单易用且用途广泛的开源 Wiki 软件。 DokuWiki v2024-01-05版本存在安全漏洞,该漏洞源于在使用indexmenu插件时,攻击者可以在创建或编辑现有页面等情况下输入跨站脚本负载,并将其存储在.txt文件中,从而引发存储型跨站脚本攻击。
Description
CVE-2024-42758 - Dokuwiki (indexmenu plugin) - XSS Vulnerability
Readme
# CVE-2024-42758

A Cross-site Scripting (XSS) vulnerability exists in version v2024-01-05 of the indexmenu plugin when is used and enabled in Dokuwiki (Open Source Wiki Engine). A malicious attacker can input XSS payloads for example when creating or editing existing page, to trigger the XSS on Dokuwiki, which is then stored in .txt file (due to nature of how Dokuwiki is designed), which presents stored XSS.

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-42758

Vulnerable Dokuwiki page:
doku.php?id=[page_name]

Vulnerable Payload
<script>alert('XSS')</script>

![image](https://github.com/user-attachments/assets/beeed529-c5f8-4d14-83b7-55e4df07a83a)

![image](https://github.com/user-attachments/assets/e3895d64-8f2b-4b86-ae44-275c9b315213)

![image](https://github.com/user-attachments/assets/a791fd07-a848-4c07-a9ae-99bf2c525429)

Discovered by Antun Matija Kriskovic, July 2024
File Snapshot

[4.0K] /data/pocs/e2cd6c3aa4133cc5536760171b5b0f3e3df1f484 └── [ 899] README.md 0 directories, 1 file
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.