PT-2021-23346 · Unknown · Passport-Oauth2

Ben12385

·

Published

2021-09-27

·

Updated

2024-08-04

·

CVE-2021-41580

CVSS v3.1

5.3

Medium

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Name of the Vulnerable Software and Affected Versions passport-oauth2 versions prior to 1.6.1
Description The issue concerns the mishandling of the error condition when failing to obtain an access token in certain use cases. Specifically, it is exploitable when an OAuth identity provider uses an HTTP 200 status code for authentication-failure error reports, and an application grants authorization upon simply receiving the access token without attempting to use it.
Recommendations For versions prior to 1.6.1, update to version 1.6.1 or later to resolve the issue. As a temporary workaround, consider modifying the application to verify the access token by attempting to use it before granting authorization. Restrict access to the authentication mechanism to minimize the risk of exploitation until the update is applied.

Fix

Improper Authentication

Weakness Enumeration

Related Identifiers

CVE-2021-41580
GHSA-F794-R6XC-HF3V

Affected Products

Passport-Oauth2