CVE-2023-6787

Keycloak: session hijacking via re-authentication

MEDIUM 6.5

At a glance

Source
NVD
EPSS
EPSS 0.74 % · percentile 55 ()
State
PUBLISHED
Published
Updated
Assigner
redhat
NVD status
Analyzed

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.

Weaknesses (CWE)

  • CWE-287 — Improper Authentication

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 6.5CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:Nredhat
CVSS 3.1MEDIUM 6.5CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:NNVD · secalert@redhat.com (Secondary)
CVSS 3.1HIGH 8.8CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

Advisories

European references

Affected configurations (NVD CPE)

Affected products

ProductVersions
keycloakaffected 0 < 22.0.10 ; affected 0 < 24.0.3
Red Hat · Red Hat build of Keycloak 22unaffected 22.0.10-1 < *
Red Hat · Red Hat build of Keycloak 22unaffected 22-13 < *
Red Hat · Red Hat build of Keycloak 22unaffected 22-16 < *
Red Hat · Red Hat build of Keycloak 22.0.10
Red Hat · Red Hat Single Sign-On 7

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD