PT-2025-5262 · Yeswiki · Yeswiki
Nishacid
·
Published
2025-01-21
·
Updated
2025-01-22
·
CVE-2025-24018
CVSS v3.1
7.6
High
| Vector | AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L |
Name of the Vulnerable Software and Affected Versions
YesWiki versions up to and including 4.4.5
Description
The vulnerability allows an authenticated user with rights to edit or create a page or comment to trigger a stored XSS attack, which can be reflected on any page where the resource is loaded. This issue utilizes the content editing feature, specifically the
{{attach}} component, which permits users to attach files or media to a page. If the resource in the file attribute does not exist, the server generates a file upload button containing the filename, enabling malicious users to steal accounts, modify pages, comments, and permissions, and extract user data like emails.Recommendations
For versions up to and including 4.4.5, update to version 4.5.0, which contains a patch for the issue.
As a temporary workaround, consider sanitizing the filename attribute in the
showFileNotExits() function to prevent the execution of malicious JavaScript code.
Implement a stronger password reset mechanism, such as not showing a password reset link to an already logged-in user, generating a password reset link when a reset is requested by a user and sending it by mail, and adding an expiration date to the token.
Implement a strong Content Security Policy to mitigate other XSS sinks.Exploit
Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Yeswiki