CVE-2023-27490
NextAuth.js OAuth Authentication Bypass
Description
NextAuth.js is an open source authentication solution for Next.js applications. `next-auth` applications using OAuth provider versions before `v4.20.1` have been found to be subject to an authentication vulnerability. A bad actor who can read traffic on the victim's network or who is able to social engineer the victim to click a manipulated login link could intercept and tamper with the authorization URL to **log in as the victim**, bypassing the CSRF protection. This is due to a partial failure during a compromised OAuth session where a session code is erroneously generated. This issue has been addressed in version 4.20.1. Users are advised to upgrade. Users unable to upgrade may using Advanced Initialization, manually check the callback request for state, pkce, and nonce against the provider configuration to prevent this issue. See the linked GHSA for details.
INFO
Published Date :
March 9, 2023, 9:15 p.m.
Last Modified :
Nov. 21, 2024, 7:53 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.9
Exploitability Score :
2.8
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2023-27490
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2023-27490
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2023-27490
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://authjs.dev/reference/core/providers#checks Added Reference https://danielfett.de/2020/05/16/pkce-vs-nonce-equivalent-or-not/ Added Reference https://github.com/nextauthjs/next-auth/security/advisories/GHSA-7r7x-4c4q-c4qf Added Reference https://next-auth.js.org/configuration/initialization#advanced-initialization Added Reference https://next-auth.js.org/configuration/providers/oauth Added Reference https://security.netapp.com/advisory/ntap-20230420-0006/ Added Reference https://www.rfc-editor.org/rfc/rfc6749#section-10.12 -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Apr. 20, 2023
Action Type Old Value New Value Added Reference https://security.netapp.com/advisory/ntap-20230420-0006/ [No Types Assigned] -
Initial Analysis by [email protected]
Mar. 16, 2023
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H Changed Reference Type https://authjs.dev/reference/core/providers#checks No Types Assigned https://authjs.dev/reference/core/providers#checks Product Changed Reference Type https://danielfett.de/2020/05/16/pkce-vs-nonce-equivalent-or-not/ No Types Assigned https://danielfett.de/2020/05/16/pkce-vs-nonce-equivalent-or-not/ Not Applicable Changed Reference Type https://github.com/nextauthjs/next-auth/security/advisories/GHSA-7r7x-4c4q-c4qf No Types Assigned https://github.com/nextauthjs/next-auth/security/advisories/GHSA-7r7x-4c4q-c4qf Exploit, Vendor Advisory Changed Reference Type https://next-auth.js.org/configuration/initialization#advanced-initialization No Types Assigned https://next-auth.js.org/configuration/initialization#advanced-initialization Product Changed Reference Type https://next-auth.js.org/configuration/providers/oauth No Types Assigned https://next-auth.js.org/configuration/providers/oauth Product Changed Reference Type https://www.rfc-editor.org/rfc/rfc6749#section-10.12 No Types Assigned https://www.rfc-editor.org/rfc/rfc6749#section-10.12 Not Applicable Added CPE Configuration OR *cpe:2.3:a:nextauth.js:next-auth:*:*:*:*:*:node.js:*:* versions up to (excluding) 4.20.1
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2023-27490
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2023-27490
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.39 }} 0.08%
score
0.73676
percentile