Keycloak Redirect Scheme Bypass Allows XSS via Wildcard Token
CVE-2023-6134 Published on December 14, 2023

Keycloak: reflected xss via wildcard in oidc redirect_uri
A flaw was found in Keycloak that prevents certain schemes in redirects, but permits them if a wildcard is appended to the token. This issue could allow an attacker to submit a specially crafted request leading to cross-site scripting (XSS) or further attacks. This flaw is the result of an incomplete fix for CVE-2020-10748.

Github Repository Vendor Advisory Vendor Advisory Vendor Advisory Vendor Advisory Vendor Advisory Vendor Advisory Vendor Advisory Vendor Advisory Vendor Advisory Vendor Advisory Vendor Advisory Vendor Advisory NVD

Vulnerability Analysis

CVE-2023-6134 is exploitable with network access, requires user interaction and a small amount of user privileges. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have a small impact on confidentiality and integrity, and no impact on availability.

Attack Vector:
NETWORK
Attack Complexity:
LOW
Privileges Required:
LOW
User Interaction:
REQUIRED
Scope:
UNCHANGED
Confidentiality Impact:
LOW
Integrity Impact:
LOW
Availability Impact:
NONE

Timeline

Reported to Red Hat.

Made public. 7 days later.

Weakness Type

What is a XSS Vulnerability?

The software does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

CVE-2023-6134 has been classified to as a XSS vulnerability or weakness.


Products Associated with CVE-2023-6134

Want to know whenever a new CVE is published for Red Hat products? stack.watch will email you.

 
 
 
 
 

Affected Versions

Red Hat build of Keycloak 22: Red Hat build of Keycloak 22: Red Hat build of Keycloak 22: Red Hat build of Keycloak 22.0.7: Red Hat Single Sign-On 7: Red Hat Single Sign-On 7.6 for RHEL 7: Red Hat Single Sign-On 7.6 for RHEL 7: Red Hat Single Sign-On 7.6 for RHEL 8: Red Hat Single Sign-On 7.6 for RHEL 8: Red Hat Single Sign-On 7.6 for RHEL 9: Red Hat Single Sign-On 7.6 for RHEL 9: Red Hat RHEL-8 based Middleware Containers: Red Hat RHEL-8 based Middleware Containers: Red Hat RHEL-8 based Middleware Containers: Red Hat Single Sign-On 7.6.6:

Vulnerable Packages

The following package name and versions may be associated with CVE-2023-6134

Package Manager Vulnerable Package Versions Fixed In
maven org.keycloak:keycloak-core < 23.0.4 23.0.4
maven org.keycloak:keycloak-services < 23.0.3 23.0.3

Exploit Probability

EPSS
2.47%
Percentile
85.06%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.