Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS14aHc2LWhqYzktNjc5bc0hGg
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.
Permalink: https://github.com/advisories/GHSA-xhw6-hjc9-679mJSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS14aHc2LWhqYzktNjc5bc0hGg
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: over 2 years ago
Updated: 7 months ago
CVSS Score: 7.5
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Identifiers: GHSA-xhw6-hjc9-679m, CVE-2021-44878
References:
- https://nvd.nist.gov/vuln/detail/CVE-2021-44878
- https://github.com/pac4j/pac4j/commit/22b82ffd702a132d9f09da60362fc6264fc281ae
- https://openid.net/specs/openid-connect-core-1_0.html#IDToken
- https://www.pac4j.org/blog/cve_2021_44878_is_this_serious.html
- https://github.com/pac4j/pac4j/commit/09684e0de1c4753d22c53b8135d4ef61cfda76f7
- https://github.com/pac4j/pac4j/commit/9c87bbc536ed5d05f940ae015403120df2935589
- https://www.pac4j.org/4.5.x/docs/release-notes.html
- https://github.com/advisories/GHSA-xhw6-hjc9-679m
Blast Radius: 17.8
Affected Packages
maven:org.pac4j:pac4j-oidc
Dependent packages: 110Dependent repositories: 238
Downloads:
Affected Version Ranges: >= 5.0, < 5.3.1, < 4.5.5
Fixed in: 5.3.1, 4.5.5
All affected versions: 1.7.0, 1.7.2, 1.8.0, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.5, 1.8.6, 1.8.7, 1.8.8, 1.8.9, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.9.4, 1.9.5, 1.9.6, 1.9.7, 1.9.8, 1.9.9, 2.0.0, 2.1.0, 2.2.0, 2.2.1, 2.3.0, 2.3.1, 3.0.0, 3.0.1, 3.0.2, 3.1.0, 3.2.0, 3.3.0, 3.4.0, 3.5.0, 3.6.0, 3.6.1, 3.7.0, 3.8.0, 3.8.1, 3.8.2, 3.8.3, 3.9.0, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.1.0, 4.2.0, 4.3.0, 4.3.1, 4.4.0, 4.5.0, 4.5.1, 4.5.2, 4.5.3, 4.5.4, 5.0.0, 5.0.1, 5.1.0, 5.1.1, 5.1.2, 5.1.3, 5.1.4, 5.1.5, 5.2.0, 5.2.1, 5.3.0
All unaffected versions: 4.5.5, 4.5.6, 4.5.7, 5.3.1, 5.4.0, 5.4.1, 5.4.2, 5.4.3, 5.4.4, 5.4.5, 5.4.6, 5.5.0, 5.6.0, 5.6.1, 5.7.0, 5.7.1, 5.7.2, 5.7.3, 6.0.0, 6.0.1, 6.0.2