Skip to main content
← All vulnerabilities
CVE-2023-6787GHSA-C9H6-V78W-52WJ

Keycloak: session hijacking via re-authentication

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 22.0.10, 24.0.3
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

A flaw was found in Keycloak that occurs from an error in the re-authentication mechanism within org.keycloak.authentication. This flaw allows hijacking an active Keycloak session by triggering a new authentication process with the query parameter "prompt=login," prompting the user to re-enter their credentials. If the user cancels this re-authentication by selecting "Restart login," an account takeover may occur, as the new session, with a different SUB, will possess the same SID as the previous session.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • keycloak

    fixed in 22.0.10; fixed in 24.0.3

  • rhbk/keycloak-operator-bundle

    Version range not reported

  • rhbk/keycloak-rhel9

    Version range not reported

  • rhbk/keycloak-rhel9-operator

    Version range not reported

  • keycloak-core

    Version range not reported

  • rh-sso7-keycloak

    Version range not reported

  • org.keycloak:keycloak-servicesMaven

    fixed in 22.0.10

  • org.keycloak:keycloak-servicesMaven

    From 23.0.0 · fixed in 24.0.3

References 5

access.redhat.com

bugzilla.redhat.com

GitHub · keycloak/keycloak