High severity · published Apr 25, 2024
CVE-2023-6787
Keycloak: session hijacking via re-authentication
8.8
CVSS
0.7%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.7% · higher than 55% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
RH
Red Hat Single Sign-On 7 · Red Hat
All versions, or not specified · source: vendor
RH
Red Hat build of Keycloak 22 · Red Hat
All versions, or not specified · source: vendor
BO
Build OF Keycloak · Redhat
All versions, or not specified · source: NVD
KE
Keycloak · Redhat
before 22.0.10; 23.0.0 before 24.0.3 · source: NVD
Affected product
RH
Red Hat build of Keycloak 22
Red Hat
More from Red Hat build of Keycloak 22
8.1
CVE-2024-1132
Keycloak: path transversal in redirection validation
7.7
CVE-2024-8698
Keycloak-saml-core: improper verification of saml responses leading to privilege escalation in keycloak
7.5
CVE-2024-4540
Keycloak: exposure of sensitive information in pushed authorization requests (par) kc_restart cookie
7.4
CVE-2024-1249
Keycloak: org.keycloak.protocol.oidc: unvalidated cross-origin messages in checkloginiframe leads to ddos
7.1
CVE-2024-7341
Wildfly-elytron: org.keycloak/keycloak-services: session fixation in elytron saml adapters