Vulnerability identifier: #VU67752
Vulnerability risk: High
CVSSv3.1: 7.1 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N/E:U/RL:O/RC:C]
CVE-ID:
CWE-ID:
CWE-287
Exploitation vector: Network
Exploit availability: No
Vulnerable software:
Upstash Redis adapter
Web applications /
JS libraries
Vendor: NextAuth.js
Description
The vulnerability allows a remote attacker to bypass authentication process.
The vulnerability exists due to Upstash Redis adapter does not properly authenticate user sessions. After the initial successful authentication performed with a valid user identifier (email) and a token, all other subsequent requests are authenticated only by using the user identifier. A remote attacker with knowledge of an existing email address can bypass authentication process and gain unauthorized access to the application.
Mitigation
Install updates from vendor's website.
Vulnerable software versions
Upstash Redis adapter: 2.0.0 - 3.0.1
External links
http://github.com/nextauthjs/next-auth/security/advisories/GHSA-4rxr-27mm-mxq9
http://github.com/nextauthjs/next-auth/commit/d16e04848ee703cf797724194d4ad2907fe125a9
Can this vulnerability be exploited remotely?
Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.
Is there known malware, which exploits this vulnerability?
No. We are not aware of malware exploiting this vulnerability.