Keycloak: session takeover with oidc offline refreshtokens (Red Hat Red Hat Single Sign-On 7)
En bref
- Source
- NVD
- EPSS
- EPSS 0.95 % · centile 61 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- redhat
- Statut NVD
- Modified
Description
A flaw was found in the offline_access scope in Keycloak. This issue would affect users of shared computers more (especially if cookies are not cleared), due to a lack of root session validation, and the reuse of session ids across root and user authentication sessions. This enables an attacker to resolve a user session attached to a previously authenticated user; when utilizing the refresh token, they will be issued a token for the original user.
Faiblesses (CWE)
Références
- https://access.redhat.com/errata/RHSA-2022:8961
- https://access.redhat.com/errata/RHSA-2022:8962
- https://access.redhat.com/errata/RHSA-2022:8963
- https://access.redhat.com/errata/RHSA-2022:8964
- https://access.redhat.com/errata/RHSA-2022:8965
- https://access.redhat.com/errata/RHSA-2023:1043
- https://access.redhat.com/errata/RHSA-2023:1044
- https://access.redhat.com/errata/RHSA-2023:1045
- https://access.redhat.com/errata/RHSA-2023:1047
- https://access.redhat.com/errata/RHSA-2023:1049
- https://access.redhat.com/security/cve/CVE-2022-3916
- https://bugzilla.redhat.com/show_bug.cgi?id=2141404
Scores
| Version | Score | Vecteur | Évalué par |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N | redhat |
| CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N | NVD · secalert@redhat.com (Secondary) |
| CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N | NVD · nvd@nist.gov (Primary) |
Avis
- GHSA-97g8-xfvw-q4hg — Keycloak vulnerable to session takeover with OIDC offline refreshtokens
Références européennes
- ENISA EUVD · EUVD-2022-7575
- GCVE · GCVE-0-2022-3916
Configurations affectées (CPE NVD)
cpe:2.3:a:redhat:keycloak:*:*:*:*:*:*:*:*< 20.0.2cpe:2.3:a:redhat:single_sign-on:-:*:*:*:text-only:*:*:*cpe:2.3:a:redhat:single_sign-on:7.6:*:*:*:*:*:*:*cpe:2.3:a:redhat:openshift_container_platform:4.9:*:*:*:*:*:*:*cpe:2.3:a:redhat:openshift_container_platform:4.10:*:*:*:*:*:*:*cpe:2.3:a:redhat:openshift_container_platform_for_linuxone:4.9:*:*:*:*:*:*:*cpe:2.3:a:redhat:openshift_container_platform_for_linuxone:4.10:*:*:*:*:*:*:*cpe:2.3:a:redhat:openshift_container_platform_for_power:4.9:*:*:*:*:*:*:*cpe:2.3:a:redhat:openshift_container_platform_for_power:4.10:*:*:*:*:*:*:*cpe:2.3:a:redhat:openshift_container_platform_ibm_z_systems:4.9:*:*:*:*:*:*:*cpe:2.3:a:redhat:openshift_container_platform_ibm_z_systems:4.10:*:*:*:*:*:*:*
Produits affectés
| Produit | Versions |
|---|---|
| Red Hat · Red Hat Single Sign-On 7 | |
| Red Hat · Red Hat Single Sign-On 7.6.1 | |
| Red Hat · Red Hat Single Sign-On 7.6 for RHEL 7 | unaffected 0:18.0.3-1.redhat_00002.1.el7sso < * |
| Red Hat · Red Hat Single Sign-On 7.6 for RHEL 7 | unaffected 0:18.0.6-1.redhat_00001.1.el7sso < * |
| Red Hat · Red Hat Single Sign-On 7.6 for RHEL 8 | unaffected 0:18.0.3-1.redhat_00002.1.el8sso < * |
| Red Hat · Red Hat Single Sign-On 7.6 for RHEL 8 | unaffected 0:18.0.6-1.redhat_00001.1.el8sso < * |
| Red Hat · Red Hat Single Sign-On 7.6 for RHEL 9 | unaffected 0:18.0.3-1.redhat_00002.1.el9sso < * |
| Red Hat · Red Hat Single Sign-On 7.6 for RHEL 9 | unaffected 0:18.0.6-1.redhat_00001.1.el9sso < * |
| Red Hat · RHEL-8 based Middleware Containers | unaffected 7.6-15 < * |
| Red Hat · RHEL-8 based Middleware Containers | unaffected 7.6-20 < * |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |