Bug 2254375 (CVE-2023-6787)

Summary: CVE-2023-6787 keycloak: session hijacking via re-authentication
Product: [Other] Security Response Reporter: Mauro Matteo Cascella <mcascell>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: boliveir, chazlett, dpalmer, drichtar, mulliken, pdrozd, peholase, pjindal, pskopek, rowaters, security-response-team, sthorger, thomas.kriener
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2242133    

Description Mauro Matteo Cascella 2023-12-13 16:14:01 UTC
A flaw was found in Keycloak. An active keycloak session can be hijacked by initiating a new authentication (having the query parameter `prompt=login`) and forcing the user to enter his credentials once again. If the user cancels this re-authentication by clicking `Restart login`, the account takeover could take place as the new session, with a different SUB, will have the same SID as the previous session.

Comment 4 errata-xmlrpc 2024-04-16 20:26:31 UTC
This issue has been addressed in the following products:

  Red Hat build of Keycloak 22.0.10

Via RHSA-2024:1868 https://access.redhat.com/errata/RHSA-2024:1868

Comment 5 errata-xmlrpc 2024-04-16 20:26:54 UTC
This issue has been addressed in the following products:

  Red Hat build of Keycloak 22

Via RHSA-2024:1867 https://access.redhat.com/errata/RHSA-2024:1867