Keycloak: session takeover with oidc offline refreshtokens
Vulnerability 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.
Impact Analysis
Refer to official advisory for detailed impact metrics.
Remediation
Ensure systems are updated to the latest vendor-supplied patch levels.
Am I Vulnerable?
Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2022-3916
Credits & Attribution
The following person or organization is credited with identifying this vulnerability, as recorded in the NVD database:
- Red Hat would like to thank Peter Flintholm (Trifork) for reporting this issue.
References
- 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
More from Red Hat
View All →Affected Vendor
Red Hat
View all reports →