Open Redirect Affecting org.keycloak:keycloak-services package, versions [21.1.2,23.0.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.14% (52nd 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 ID SNYK-JAVA-ORGKEYCLOAK-6128850
  • published 15 Dec 2023
  • disclosed 14 Dec 2023
  • credit Ketec

How to fix?

Upgrade org.keycloak:keycloak-services to version 23.0.0 or higher.

Overview

org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

Affected versions of this package are vulnerable to Open Redirect due to a flaw in the redirect_uri validation logic. An attacker can steal an access token and impersonate other users by bypassing the validation of explicitly allowed hosts.

PoC

redirect_uri=com.someapp.App://oauth2redirect

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
7.1 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Required
  • Scope (S)
    Changed
  • Confidentiality (C)
    Low
  • Integrity (I)
    Low
  • Availability (A)
    Low
Expand this section

NVD

7.1 high
Expand this section

Red Hat

7.1 high