REDHAT-BUG-2455325: XSS
Stored Cross-Site Scripting (XSS) vulnerability in the organization selection login page of Keycloak. The flaw is caused by placing organization.alias into an inline JavaScript onclick handler, where browser HTML decoding bypasses FreeMarker’s HTML escaping. When an attacker-controlled alias containing a crafted JavaScript payload is rendered on the organization selection page, the payload can execute in the context of any user’s browser. This can be exploited remotely by an admin with manage-realm or manage-organizations privileges, without further user interaction beyond viewing the login page. Successful exploitation allows execution of arbitrary JavaScript, enabling session theft, account actions, or further attacks against users of the affected realm.
Affected Software
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2455325?
The severity of REDHAT-BUG-2455325 is classified as critical due to its potential to allow stored Cross-Site Scripting attacks.
How do I fix REDHAT-BUG-2455325?
To fix REDHAT-BUG-2455325, it is recommended to apply the latest security patches provided by Red Hat for Keycloak.
What is the impact of REDHAT-BUG-2455325?
The impact of REDHAT-BUG-2455325 includes the potential for an attacker to execute arbitrary JavaScript in the context of a user's session.
Which versions of Keycloak are affected by REDHAT-BUG-2455325?
All versions of Red Hat Keycloak that contain the organization selection login page are affected by REDHAT-BUG-2455325.
How does REDHAT-BUG-2455325 exploit the application?
REDHAT-BUG-2455325 exploits the application by injecting malicious scripts through the organization.alias parameter in inline JavaScript.