{"id":"CVE-2024-42476","published":"2024-08-15T18:48:08Z","modified":"2024-08-20T15:39:54Z","title":"oauth CSRF vulnerability","vendor":"CORDEA","product":"oauth","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0024,"percentile":0.15371,"provenance":"source"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"references":[{"url":"https://github.com/CORDEA/oauth/security/advisories/GHSA-pc9j-53g7-5x54","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/CORDEA/oauth/blob/b8c163b0d9cfad6d29ce8c1fb394e5f47182ee1c/src/oauth2.nim#L235","tags":["x_refsource_MISC"]},{"url":"https://github.com/CORDEA/oauth/blob/b8c163b0d9cfad6d29ce8c1fb394e5f47182ee1c/src/oauth2.nim#L255","tags":["x_refsource_MISC"]}],"priority":{"score":7.6,"factors":[{"name":"EPSS percentile","points":3.07},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"cordea","affectedVersions":[{"vendor":"CORDEA","product":"oauth","versions":["< 0.11"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-08-20T15:39:46.890853Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-39636","exploited":false,"provenance":"source"}}