SB2022092955 - Authentication bypass in Upstash Redis adapter for Next-Auth.js
Published: September 29, 2022
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 1 vulnerability.
1) Improper Authentication (CVE-ID: CVE-2022-39263)
CWE-ID: CWE-287 - Improper Authentication
CVSSv4: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Amber
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.
Remediation
Install update from vendor's website.