CVE-2023-6787
6.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Summary
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 Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
0 < 22.0.10 | affected | ||
0 < 24.0.3 | affected | ||
| Red Hat | Red Hat build of Keycloak 22 | 22.0.10-1 < * | unaffected |
| Red Hat | Red Hat build of Keycloak 22 | 22-13 < * | unaffected |
| Red Hat | Red Hat build of Keycloak 22 | 22-16 < * | unaffected |
Weaknesses
- CWE-287: Improper Authentication
ADP Enrichment
CISA ADP Vulnrichment
- SSVC:
- Exploitation: none
- Automatable: no
- Technical Impact: partial
CVE Program Container
Additional References
- https://access.redhat.com/errata/RHSA-2024:1867
- https://access.redhat.com/errata/RHSA-2024:1868
- https://access.redhat.com/security/cve/CVE-2023-6787
- https://bugzilla.redhat.com/show_bug.cgi?id=2254375
References
- https://access.redhat.com/errata/RHSA-2024:1867
- https://access.redhat.com/errata/RHSA-2024:1868
- https://access.redhat.com/security/cve/CVE-2023-6787
- https://bugzilla.redhat.com/show_bug.cgi?id=2254375
- https://github.com/keycloak/keycloak/security/advisories/GHSA-c9h6-v78w-52wj
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.