SB2022081067 - Improper authorization in NextAuth.js



SB2022081067 - Improper authorization in NextAuth.js

Published: August 10, 2022 Updated: November 21, 2023

Security Bulletin ID SB2022081067
Severity
Low
Patch available
YES
Number of vulnerabilities 1
Exploitation vector Remote access
Highest impact Data manipulation

Breakdown by Severity

Low 100%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 1 security vulnerability.


1) Incorrect authorization (CVE-ID: CVE-2022-35924)

The vulnerability allows a remote attacker to bypass authorization process.

The vulnerability exists due to the way NextAuth.js send verification requests using the EmailProvider. If an attacker can forge a request that sends a comma-separated list of emails, the verification token is sent to both email addresses (e.g. attacker@attacker.com,victim@victim.com). In such case the login name will consist of both email addresses. however the email notification will be sent to both emails.


Remediation

Install update from vendor's website.