Access Restriction Bypass Affecting org.pac4j:pac4j-oidc package, versions [,5.2.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.12% (48th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Access Restriction Bypass vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGPAC4J-2331054
  • published6 Jan 2022
  • disclosed6 Jan 2022
  • creditUnknown

Introduced: 6 Jan 2022

CVE-2021-44878  (opens in a new tab)
CWE-284  (opens in a new tab)

How to fix?

Upgrade org.pac4j:pac4j-oidc to version 5.2.0 or higher.

Overview

Affected versions of this package are vulnerable to Access Restriction Bypass by allowing clients to accept and successfully validate ID Tokens with "none" algorithm by default, (i.e., tokens with no signature) 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.

CVSS Scores

version 3.1