Home
Home
Trends
Trends
Vulnerabilities
Vulnerabilities
News
News
Researchers
Researchers
Why dbugs?
Why dbugs?
Settings

Rikaardhosein

#23377of 61,086
13Total CVSS
Vulnerabilities · 2
Medium
2
PT-2024-29971
2024-08-15
6.5
CVE-2024-42475
Unknown
Oauth Library For Nim
The `state` values generated by the `generateState` function do not have sufficient entropy, allowing an attacker to guess them and perform a CSRF attack, associating the user's session with the attacker's protected resources. The `generateState` function should use a cryptographically secure pseudorandom number generator (CSPRNG) to generate `state` values. The issue is resolved in version 0.11, which generates `state` values with at least 128 bits of entropy using a CSPRNG.
PT-2024-29972
2024-08-15
6.5
CVE-2024-42476
Unknown
Oauth Library For Nim
The issue concerns the OAuth library for nim, where the Authorization Code grant and Implicit grant rely on the `state` parameter to prevent cross-site request forgery (CSRF) attacks. However, when compiled with certain compiler flags, the `state` parameter may not be checked, creating a CSRF vulnerability. This is because the library previously relied on a plain `assert` for checking the `state` parameter, which can be disabled with flags like `-d:danger` or `--assertions:off`. Version 0.11 addresses this by using a regular `if` statement or `doAssert` for the check, ensuring the desired behavior even when assertions are disabled.