CVE-2024-42475 Cross-site request forgery in oauth

Medium 6.5 Published Updated

Attackers can guess low-entropy OAuth state values to perform CSRF attacks, linking user sessions to attacker resources.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2024-42475?

CVE-2024-42475 is a medium-severity vulnerability in CORDEA oauth, published on 15 Aug 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-352, CWE-330

Which versions are affected by CVE-2024-42475?

How do I fix CVE-2024-42475?

No fix has been published for CVE-2024-42475 yet. Limit exposure of the affected software until one is available.

Is CVE-2024-42475 being exploited?

There is no known exploitation of CVE-2024-42475 in the wild and no public exploit code.

Sources

Also known as GHSA-332c-q46h-fg8f.

Is CVE-2024-42475 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free