Authentication bypass in Upstash Redis adapter for Next-Auth.js



Published: 2022-09-29
Risk High
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2022-39263
CWE-ID CWE-287
Exploitation vector Network
Public exploit N/A
Vulnerable software
Subscribe
Upstash Redis adapter
Web applications / JS libraries

Vendor NextAuth.js

Security Bulletin

This security bulletin contains one high risk vulnerability.

1) Improper Authentication

EUVDB-ID: #VU67752

Risk: High

CVSSv3.1:

CVE-ID: CVE-2022-39263

CWE-ID: CWE-287 - Improper Authentication

Exploit availability: No

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


CPE2.3 External links

http://github.com/nextauthjs/next-auth/security/advisories/GHSA-4rxr-27mm-mxq9
http://github.com/nextauthjs/next-auth/commit/d16e04848ee703cf797724194d4ad2907fe125a9

Q & A

Can this vulnerability be exploited remotely?

Is there known malware, which exploits this vulnerability?



###SIDEBAR###