CVE-2024-34712

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-34712
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-34712.json
Aliases
Published
2024-05-14T16:17:26Z
Modified
2024-05-19T02:24:46.835860Z
Summary
[none]
Details

Oceanic is a NodeJS library for interfacing with Discord. Prior to version 1.10.4, 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. Version 1.10.4 fixes this issue. Some workarounds are available. One may sanitize user input, ensuring strings are valid for the purpose they are being used for. One may also encode input with encodeURIComponent before providing it to the library.

References

Affected packages

Git / github.com/oceanicjs/oceanic

Affected ranges

Type
GIT
Repo
https://github.com/oceanicjs/oceanic
Events
Introduced
0The exact introduced commit is unknown
Fixed

Affected versions

v0.*

v0.0.1
v0.0.10
v0.0.11
v0.0.2
v0.0.3
v0.0.4
v0.0.5
v0.0.6
v0.0.7
v0.0.8
v0.0.9

v1.*

v1.0.0
v1.0.0-rc.1
v1.0.0-rc.2
v1.0.0-rc.3
v1.0.0-rc.4
v1.0.0-rc.5
v1.0.2
v1.1.0
v1.1.1
v1.1.2
v1.10.0
v1.10.1
v1.10.2
v1.10.3
v1.2.0
v1.2.1
v1.3.0
v1.3.1
v1.3.2
v1.4.0
v1.4.1
v1.5.0
v1.5.1
v1.6.0
v1.7.0
v1.7.1
v1.8.0
v1.8.1
v1.9.0