ghsa-w34w-fvp3-68xm
Vulnerability from github
Summary
The squelette
parameter is vulnerable to path traversal attacks, enabling read access to arbitrary files on the server. The payload ../../../../../../etc/passwd
was submitted in the squelette
parameter. The requested file was returned in the application's response.
Details
File path traversal vulnerabilities arise when user-controllable data is used within a filesystem operation in an unsafe manner. Typically, a user-supplied filename is appended to a directory prefix in order to read or write the contents of a file. If vulnerable, an attacker can supply path traversal sequences (using dot-dot-slash characters) to break out of the intended directory and read or write files elsewhere on the filesystem.
PoC
- Access the below URL to see the contents of
/etc/passwd
: URL with payload:https://yeswiki.net/?UrkCEO/edit&theme=margot&squelette=..%2f..%2f..%2f..%2f..%2f..%2fetc%2fpasswd&style=margot.css
Similarly, contents of wakka.config.php
can be read (which contains database password) using ..%2f..%2f..%2fwakka.config.php
as payload. Thus showing the severity of this issue.
Impact
This is a very serious vulnerability, allowing an attacker to access sensitive files containing configuration data, passwords, database records, log data, source code, and program scripts and binaries. Thus, leading to complete loss of confidentiality.
{ "affected": [ { "package": { "ecosystem": "Packagist", "name": "yeswiki/yeswiki" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "4.5.2" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2025-31131" ], "database_specific": { "cwe_ids": [ "CWE-22" ], "github_reviewed": true, "github_reviewed_at": "2025-04-01T18:31:48Z", "nvd_published_at": "2025-04-01T15:16:07Z", "severity": "HIGH" }, "details": "### Summary\nThe `squelette` parameter is vulnerable to path traversal attacks, enabling read access to arbitrary files on the server. The payload `../../../../../../etc/passwd` was submitted in the `squelette` parameter. The requested file was returned in the application\u0027s response.\n\n### Details\nFile path traversal vulnerabilities arise when user-controllable data is used within a filesystem operation in an unsafe manner. Typically, a user-supplied filename is appended to a directory prefix in order to read or write the contents of a file. If vulnerable, an attacker can supply path traversal sequences (using dot-dot-slash characters) to break out of the intended directory and read or write files elsewhere on the filesystem.\n\n### PoC\n1. Access the below URL to see the contents of `/etc/passwd`:\n **URL with payload:** `https://yeswiki.net/?UrkCEO/edit\u0026theme=margot\u0026squelette=..%2f..%2f..%2f..%2f..%2f..%2fetc%2fpasswd\u0026style=margot.css`\n \n Similarly, contents of `wakka.config.php` can be read (which contains database password) using `..%2f..%2f..%2fwakka.config.php` as payload. Thus showing the severity of this issue. \n\n### Impact\nThis is a very serious vulnerability, allowing an attacker to access sensitive files containing configuration data, passwords, database records, log data, source code, and program scripts and binaries. Thus, leading to complete loss of confidentiality.", "id": "GHSA-w34w-fvp3-68xm", "modified": "2025-04-01T18:31:48Z", "published": "2025-04-01T18:31:48Z", "references": [ { "type": "WEB", "url": "https://github.com/YesWiki/yeswiki/security/advisories/GHSA-w34w-fvp3-68xm" }, { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-31131" }, { "type": "WEB", "url": "https://github.com/YesWiki/yeswiki/commit/f78c915369a60c74ab8f38561ae93a4aaca9b989" }, { "type": "PACKAGE", "url": "https://github.com/YesWiki/yeswiki" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N", "type": "CVSS_V3" } ], "summary": "Yeswiki Path Traversal vulnerability allows arbitrary read of files" }
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.