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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | keycloak | < 22.0.10, < 24.0.3 | 22.0.10 |
| Red Hat | Red Hat build of Keycloak 22 | — | — |
| Red Hat | Red Hat build of Keycloak 22.0.10 | — | — |
| Red Hat | Red Hat Single Sign-On 7 | — | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.keycloak:keycloak-services | < 22.0.10 | 22.0.10 | GHSA-c9h6-v78w-52wj |
| Maven | org.keycloak:keycloak-services | >= 23.0.0, < 24.0.3 | 24.0.3 | GHSA-c9h6-v78w-52wj |
Advisories 2
- WID-SEC-2024-0914 Red Hat Enterprise Linux (keycloak): Mehrere Schwachstellen BSI CERT-Bund (WID) · Dec 17, 2024
- WID-SEC-2024-0466 Keycloak: Schwachstelle ermöglicht Erlangen von Benutzerrechten BSI CERT-Bund (WID) · Feb 21, 2024
References
- RHSA-2024:1867 vendor-advisory
- RHSA-2024:1868 vendor-advisory
- https://access.redhat.com/security/cve/CVE-2023-6787 vdb-entry
- RHBZ#2254375 issue-tracking
- https://github.com/keycloak/keycloak/security/advisories/GHSA-c9h6-v78w-52wj