CVE-2024-42476
Last modified
CVE-2024-42476 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 Authorization Code grant and Implicit grant both rely on the `state` parameter to prevent cross-site request forgery (CSRF) attacks where a resource owner might have their session associated with protected resources belonging to an attacker. When this project is compiled with certain compiler flags set, it is possible that the `state` parameter will not be checked at all, creating a CSRF vulnerability. EPSS estimates a 0.23% chance of exploitation in the next 30 days.
Description
In the OAuth library for nim prior to version 0.11, the Authorization Code grant and Implicit grant both rely on the `state` parameter to prevent cross-site request forgery (CSRF) attacks where a resource owner might have their session associated with protected resources belonging to an attacker. When this project is compiled with certain compiler flags set, it is possible that the `state` parameter will not be checked at all, creating a CSRF vulnerability. Version 0.11 checks the `state` parameter using a regular `if` statement or `doAssert` instead of relying on a plain `assert`. `doAssert` will achieve the desired behavior even if `-d:danger` or `--assertions:off` is set.
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-42476?
How severe is CVE-2024-42476?
How do I fix CVE-2024-42476?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-42470openHAB, a provider of open-source home automation software,…9.1
- CVE-2024-42471actions/artifact is the GitHub ToolKit for developing GitHub…7.5
- CVE-2024-42472Flatpak is a Linux application sandboxing and distribution f…10
- CVE-2024-42473OpenFGA is an authorization/permission engine. OpenFGA v1.5.…9.8
- CVE-2024-42474Streamlit is a data oriented application development framewo…6.5
- CVE-2024-42475In the OAuth library for nim prior to version 0.11, the `sta…6.5
- CVE-2024-42477llama.cpp provides LLM inference in C/C++. The unsafe `type`…7.5
- CVE-2024-42478llama.cpp provides LLM inference in C/C++. The unsafe `data`…9.8
- CVE-2024-42479llama.cpp provides LLM inference in C/C++. The unsafe `data`…9.8
- CVE-2024-4248A vulnerability was found in Tenda i21 1.0.0.14(4656) and cl…8.8
- CVE-2024-42480Kamaji is the Hosted Control Plane Manager for Kubernetes. I…9.9
- CVE-2024-42481Skyport Daemon (skyportd) is the daemon for the Skyport Pane…7.5
Are you affected by CVE-2024-42476?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
