GHSA-xhw6-hjc9-679m

    Dashboard / Vulnerabilities / GHSA-xhw6-hjc9-679m

    GHSA-xhw6-hjc9-679m

    Published: 8 Jan 2022Last Modified: 16 Feb 2024

    Summary: Pac4j token validation bypass if OpenID Connect provider supports none algorithm

    Details: 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.

    Affected packages

    Package

    Name: org.pac4j:pac4j-oidc

    Purl: pkg:maven/org.pac4j/pac4j-oidc

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -4.5.5

    Affected versions

    1.7.0
    1.7.1
    1.7.2

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-xhw6-hjc9-679m | CVE-DB