PT-2024-26126 · Oceanic · Oceanic
Vendicated
·
Published
2024-05-14
·
Updated
2024-05-14
·
CVE-2024-34712
CVSS v3.1
6.5
Medium
| Vector | AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
Name of the Vulnerable Software and Affected Versions
Oceanic versions prior to 1.10.4
Description
The issue arises from the lack of url-encoding for input to certain functions, such as
Client.rest.channels.removeBan. This allows specially crafted input, like ../../../channels/{id}, to be normalized into the url /api/v10/channels/{id}, resulting in unintended actions like deleting a channel instead of removing a ban.Recommendations
For versions prior to 1.10.4, consider updating to version 1.10.4 to resolve the issue.
As a temporary workaround, consider sanitizing user input to ensure strings are valid for their intended use.
Alternatively, encode input with
encodeURIComponent before providing it to the library.Exploit
Fix
Path traversal
Relative Path Traversal
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Oceanic