PT-2021-23220 · Nim+1 · Nim+1
Published
2021-11-12
·
Updated
2024-06-15
·
CVE-2021-41259
CVSS v3.1
9.8
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Nim (affected versions not specified)
Description
The uri.parseUri function in Nim may be used to validate URIs and accepts null bytes in the input URI, which could be used to bypass URI validation. For example,
parseUri("http://localhost0hello") sets the hostname to "localhost0hello". Additionally, httpclient.getContent accepts null bytes in the input URL and ignores any data after the first null byte. An attacker can use null bytes to bypass the check and mount a Server-Side Request Forgery (SSRF) attack.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Nim
Suse