logo

CVE-2021-44878 org.pac4j:pac4j-oidc

Package

Manager: maven
Name: org.pac4j:pac4j-oidc
Vulnerable Version: >=0 <4.5.5 || >=5.0 <5.3.1

Severity

Level: High

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

EPSS: 0.00038 pctl0.10325

Details

Pac4j token validation bypass if OpenID Connect provider supports none algorithm If an OpenID Connect provider supports the “none” algorithm (i.e., tokens with no signature), pac4j v5.3.0 (and prior) does not refuse it without an explicit configuration on its side or for the “idtoken” response type which is not secure and violates the OpenID Core Specification. The "none" algorithm does not require any signature verification when validating the ID tokens, which allows the attacker to bypass the token validation by injecting a malformed ID token using "none" as the value of "alg" key in the header with an empty signature value.

Metadata

Created: 2022-01-08T00:36:05Z
Modified: 2023-09-26T17:27:45Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/01/GHSA-xhw6-hjc9-679m/GHSA-xhw6-hjc9-679m.json
CWE IDs: ["CWE-347"]
Alternative ID: GHSA-xhw6-hjc9-679m
Finding: F204
Auto approve: 1