[MAVEN:GHSA-XHW6-HJC9-679M] Pac4j token validation bypass if OpenID Connect provider supports none algorithm

Severity High
Affected Packages 2
Fixed Packages 2
CVEs 1

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.

Package Affected Version
pkg:maven/org.pac4j/pac4j-oidc >= 5.0, < 5.3.1
pkg:maven/org.pac4j/pac4j-oidc < 4.5.5
ID
MAVEN:GHSA-XHW6-HJC9-679M
Severity
high
URL
https://github.com/advisories/GHSA-xhw6-hjc9-679m
Published
2022-01-08T00:36:05
(2 years ago)
Modified
2023-09-26T17:27:46
(11 months ago)
Rights
Maven Security Team
Type Package URL Namespace Name / Product Version Distribution / Platform Arch Patch / Fix
Affected pkg:maven/org.pac4j/pac4j-oidc org.pac4j pac4j-oidc >= 5.0 < 5.3.1
Fixed pkg:maven/org.pac4j/pac4j-oidc org.pac4j pac4j-oidc = 5.3.1
Affected pkg:maven/org.pac4j/pac4j-oidc org.pac4j pac4j-oidc < 4.5.5
Fixed pkg:maven/org.pac4j/pac4j-oidc org.pac4j pac4j-oidc = 4.5.5
# CVE Description CVSS EPSS EPSS Trend (30 days) Affected Products Weaknesses Security Advisories Exploits PoC Pubblication Date Modification Date
# CVE Description CVSS EPSS EPSS Trend (30 days) Affected Products Weaknesses Security Advisories PoC Pubblication Date Modification Date
Loading...