CVE-2024-42475
Last modified
CVE-2024-42475 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. 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. EPSS estimates a 0.24% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2024-42475?
How severe is CVE-2024-42475?
How do I fix CVE-2024-42475?
Are you affected by CVE-2024-42475?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
