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.
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.
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:- Version 22.0.7-1 and below * is unaffected.
- Version 22-6 and below * is unaffected.
- Version 22-9 and below * is unaffected.
- Version 0:18.0.11-2.redhat_00003.1.el7sso and below * is unaffected.
- Version 0:18.0.12-1.redhat_00001.1.el7sso and below * is unaffected.
- Version 0:18.0.11-2.redhat_00003.1.el8sso and below * is unaffected.
- Version 0:18.0.12-1.redhat_00001.1.el8sso and below * is unaffected.
- Version 0:18.0.11-2.redhat_00003.1.el9sso and below * is unaffected.
- Version 0:18.0.12-1.redhat_00001.1.el9sso and below * is unaffected.
- Version 7.6-38 and below * is unaffected.
- Version 7.6.6-2 and below * is unaffected.
- Version 7.6-41 and below * is unaffected.
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 (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.