Introducing Wiz for Exposure Management: Unify, prioritize, and remediate exposures everywhere.

CVE-2023-6291
Java vulnerability analysis and mitigation

Overview

A flaw was discovered in the redirect_uri validation logic in Keycloak (CVE-2023-6291), identified in late 2023. The vulnerability affects Keycloak's authentication system and its implementation across Red Hat Single Sign-On (versions 7.6.x) and Red Hat build of Keycloak products. The issue stems from a validation bypass that could allow unauthorized redirection to malicious hosts (Red Hat CVE).

Technical details

The vulnerability exists in the verifyRedirectUri method where there is a desynchronization between how Keycloak and browsers interpret URLs. When Keycloak receives a specially crafted URL like 'https://www%2ekeycloak%2eorg%2fapp%2f:y@example.com', it incorrectly interprets the authority as keycloak.org when it should be example.com. This occurs because the validation logic is performed on a URL decoded version that no longer represents the original input (Bugzilla Report).

Impact

A successful exploitation of this vulnerability could lead to an access token being stolen, enabling an attacker to impersonate other users. This poses a significant security risk as it could allow unauthorized access to protected resources and user accounts (Red Hat Advisory).

Mitigation and workarounds

Red Hat has released security updates to address this vulnerability across multiple products. Updates are available for Red Hat Single Sign-On 7.6.7, Red Hat build of Keycloak 22.0.7, and related container images. Users are strongly advised to update to the latest versions that contain the security fixes (Red Hat Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management