CVE Vulnerabilities

CVE-2024-7341

Session Fixation

Published: Sep 09, 2024 | Modified: Oct 04, 2024
CVSS 3.x
7.1
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
7.1 MODERATE
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
Ubuntu
root.io logo minimus.io logo echo.ai logo

A session fixation issue was discovered in the SAML adapters provided by Keycloak. The session ID and JSESSIONID cookie are not changed at login time, even when the turnOffChangeSessionIdOnLogin option is configured. This flaw allows an attacker who hijacks the current session before authentication to trigger session fixation.

Weakness

Authenticating a user, or otherwise establishing a new user session, without invalidating any existing session identifier gives an attacker the opportunity to steal authenticated sessions.

Affected Software

NameVendorStart VersionEnd Version
KeycloakRedhat*25.0.2 (including)
Red Hat Build of KeycloakRedHatorg.keycloak/keycloak-services*
Red Hat Build of KeycloakRedHatorg.keycloak/keycloak-services*
Red Hat build of Keycloak 22RedHatrhbk/keycloak-operator-bundle:22.0.12-1*
Red Hat build of Keycloak 22RedHatrhbk/keycloak-rhel9:22-17*
Red Hat build of Keycloak 22RedHatrhbk/keycloak-rhel9-operator:22-20*
Red Hat build of Keycloak 24RedHatrhbk/keycloak-operator-bundle:24.0.7-4*
Red Hat build of Keycloak 24RedHatrhbk/keycloak-rhel9:24-16*
Red Hat build of Keycloak 24RedHatrhbk/keycloak-rhel9-operator:24-16*
Red Hat Single Sign-On 7RedHatorg.keycloak/keycloak-services*
Red Hat Single Sign-On 7.6 for RHEL 7RedHatrh-sso7-keycloak-0:18.0.16-1.redhat_00001.1.el7sso*
Red Hat Single Sign-On 7.6 for RHEL 8RedHatrh-sso7-keycloak-0:18.0.16-1.redhat_00001.1.el8sso*
Red Hat Single Sign-On 7.6 for RHEL 9RedHatrh-sso7-keycloak-0:18.0.16-1.redhat_00001.1.el9sso*
RHEL-8 based Middleware ContainersRedHatrh-sso-7/sso76-openshift-rhel8:7.6-52*

Extended Description

Such a scenario is commonly observed when:

In the generic exploit of session fixation vulnerabilities, an attacker creates a new session on a web application and records the associated session identifier. The attacker then causes the victim to associate, and possibly authenticate, against the server using that session identifier, giving the attacker access to the user’s account through the active session.

Potential Mitigations

References