Input to functions such as Client.rest.channels.removeBan
is not url-encoded, resulting in specially crafted input such as ../../../channels/{id}
being normalized into the url /api/v10/channels/{id}
, and deleting a channel rather than removing a ban.
encodeURIComponent
before providing it to the library.OceanicJS/Oceanic@8bf8ee8373b8c565fbdbf70a609aba4fbc1a1ffe
{ "nvd_published_at": "2024-05-14T16:17:26Z", "cwe_ids": [ "CWE-22", "CWE-23" ], "severity": "MODERATE", "github_reviewed": true, "github_reviewed_at": "2024-05-14T20:13:58Z" }