CVE-2022-39263
NextAuth Upstash Redis Adapter Email Token Verification Bypass
Description
`@next-auth/upstash-redis-adapter` is the Upstash Redis adapter for NextAuth.js, which provides authentication for Next.js. Applications that use `next-auth` Email Provider and `@next-auth/upstash-redis-adapter` before v3.0.2 are affected by this vulnerability. The Upstash Redis adapter implementation did not check for both the identifier (email) and the token, but only checking for the identifier when verifying the token in the email callback flow. An attacker who knows about the victim's email could easily sign in as the victim, given the attacker also knows about the verification token's expired duration. The vulnerability is patched in v3.0.2. A workaround is available. Using Advanced Initialization, developers can check the requests and compare the query's token and identifier before proceeding.
INFO
Published Date :
Sept. 28, 2022, 9:15 p.m.
Last Modified :
Nov. 21, 2024, 7:17 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.9
Exploitability Score :
2.2
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-2022-39263
.
URL | Resource |
---|---|
https://github.com/nextauthjs/next-auth/commit/d16e04848ee703cf797724194d4ad2907fe125a9 | Patch |
https://github.com/nextauthjs/next-auth/security/advisories/GHSA-4rxr-27mm-mxq9 | Mitigation Patch Third Party Advisory |
https://github.com/nextauthjs/next-auth/commit/d16e04848ee703cf797724194d4ad2907fe125a9 | Patch |
https://github.com/nextauthjs/next-auth/security/advisories/GHSA-4rxr-27mm-mxq9 | Mitigation Patch Third Party Advisory |
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-2022-39263
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2022-39263
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://github.com/nextauthjs/next-auth/commit/d16e04848ee703cf797724194d4ad2907fe125a9 Added Reference https://github.com/nextauthjs/next-auth/security/advisories/GHSA-4rxr-27mm-mxq9 -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Reanalysis by [email protected]
Mar. 03, 2023
Action Type Old Value New Value Changed Reference Type https://github.com/nextauthjs/next-auth/commit/d16e04848ee703cf797724194d4ad2907fe125a9 Patch, Third Party Advisory https://github.com/nextauthjs/next-auth/commit/d16e04848ee703cf797724194d4ad2907fe125a9 Patch Changed CPE Configuration OR *cpe:2.3:a:next-auth:nextauth:*:*:*:*:*:node.js:*:* versions up to (excluding) 3.0.2 OR *cpe:2.3:a:nextauth.js:next-auth:*:*:*:*:*:node.js:*:* versions up to (excluding) 3.0.2 -
Initial Analysis by [email protected]
Sep. 30, 2022
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://github.com/nextauthjs/next-auth/commit/d16e04848ee703cf797724194d4ad2907fe125a9 No Types Assigned https://github.com/nextauthjs/next-auth/commit/d16e04848ee703cf797724194d4ad2907fe125a9 Patch, Third Party Advisory Changed Reference Type https://github.com/nextauthjs/next-auth/security/advisories/GHSA-4rxr-27mm-mxq9 No Types Assigned https://github.com/nextauthjs/next-auth/security/advisories/GHSA-4rxr-27mm-mxq9 Mitigation, Patch, Third Party Advisory Added CPE Configuration OR *cpe:2.3:a:next-auth:nextauth:*:*:*:*:*:node.js:*:* versions up to (excluding) 3.0.2
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2022-39263
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-2022-39263
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.20 }} -0.01%
score
0.57322
percentile