Advisory Published
Updated

REDHAT-BUG-2031904

First published: Mon Dec 13 2021(Updated: )

This issue is the result of code found in the exception here: <a href="https://github.com/keycloak/keycloak/blob/48835576daa158443f69917ac309e1a7c951bc87/services/src/main/java/org/keycloak/authentication/AuthenticationProcessor.java#L1045">https://github.com/keycloak/keycloak/blob/48835576daa158443f69917ac309e1a7c951bc87/services/src/main/java/org/keycloak/authentication/AuthenticationProcessor.java#L1045</a> Reproduction: 1. Sign in as Admin user in first tab. 2. In that tab create new user in keycloak admin section &gt; intercept user creation request and modify it by including malicious js script there (in username field). 3. Sign in as newly created user in second tab (same browser window but second tab). 4. Navigate back to first tab where you are signed in as admin, navigate to admin console which lists all application users. 5. Choose any user (except newly created malicious one) – modify anything for that user in his settings. E.g. navigate to credentials tab and set new credentials for him. Also set new password as temporary. 6. After update for that user is made, use impersonate option on that modified user. 7. You should see window with form which requires providing new credentials – fill it and submit request. 8. Just after submiting request user will get notified that “You are already authenticated as different user ‘[user + payload]’ in this session. Please sign out first.” And malicious payload will be executed instantly.

Affected SoftwareAffected VersionHow to fix
Keycloak

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of REDHAT-BUG-2031904?

    The severity of REDHAT-BUG-2031904 is classified as high due to potential security implications.

  • How do I fix REDHAT-BUG-2031904?

    To fix REDHAT-BUG-2031904, update to the latest version of Red Hat Build of Keycloak.

  • What are the potential impacts of REDHAT-BUG-2031904?

    The potential impacts of REDHAT-BUG-2031904 include unauthorized access and possible data breaches.

  • Which versions of Keycloak are affected by REDHAT-BUG-2031904?

    All versions of Red Hat Build of Keycloak prior to the patch release are impacted by REDHAT-BUG-2031904.

  • Where can I find more information about REDHAT-BUG-2031904?

    For more information about REDHAT-BUG-2031904, check the official Red Hat bug report and documentation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203