Bug 2254375 (CVE-2023-6787) - CVE-2023-6787 keycloak: session hijacking via re-authentication
Summary: CVE-2023-6787 keycloak: session hijacking via re-authentication
Keywords:
Status: NEW
Alias: CVE-2023-6787
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 2242133
TreeView+ depends on / blocked
 
Reported: 2023-12-13 16:14 UTC by Mauro Matteo Cascella
Modified: 2024-04-24 12:35 UTC (History)
13 users (show)

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.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2024:1867 0 None None None 2024-04-16 20:26:55 UTC
Red Hat Product Errata RHSA-2024:1868 0 None None None 2024-04-16 20:26:32 UTC

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


Note You need to log in before you can comment on or make changes to this bug.