CVE-2024-42475
CVSS V2 None
CVSS V3 None
Description
In the OAuth library for nim prior to version 0.11, the `state` values generated by the `generateState` function do not have sufficient entropy. These can be successfully guessed by an attacker allowing them to perform a CSRF vs a user, associating the user's session with the attacker's protected resources. While `state` isn't exactly a cryptographic value, it should be generated in a cryptographically secure way. `generateState` should be using a CSPRNG. Version 0.11 modifies the `generateState` function to generate `state` values of at least 128 bits of entropy while using a CSPRNG.
Overview
- CVE ID
- CVE-2024-42475
- Assigner
- GitHub_M
- Vulnerability Status
- PUBLISHED
- Published Version
- 2024-08-15T18:40:49.750Z
- Last Modified Date
- 2024-08-15T18:40:49.750Z
Weakness Enumerations
References
Reference URL | Reference Tags |
---|---|
https://github.com/CORDEA/oauth/security/advisories/GHSA-332c-q46h-fg8f | x_refsource_CONFIRM |
https://github.com/CORDEA/oauth/blob/b8c163b0d9cfad6d29ce8c1fb394e5f47182ee1c/src/oauth2.nim#L179 | x_refsource_MISC |
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2024-42475 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-42475 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2024-08-16 13:11:27 | Added to TrackCVE |