Keycloak Offline_Access Scope Session ID Reuse CVE-2022-3916
CVE-2022-3916 Published on September 20, 2023
Keycloak: session takeover with oidc offline refreshtokens
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.
Vulnerability Analysis
CVE-2022-3916 is exploitable with network access, and requires small amount of user privileges. This vulnerability is consided to have a high level of attack complexity. The potential impact of an exploit of this vulnerability is considered to have a high impact on confidentiality and integrity, and no impact on availability.
Timeline
Reported to Red Hat.
Made public.
Weakness Type
Session Fixation
Authenticating a user, or otherwise establishing a new user session, without invalidating any existing session identifier gives an attacker the opportunity to steal authenticated sessions.
Products Associated with CVE-2022-3916
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2022-3916 are published in these products:
Affected Versions
Red Hat Single Sign-On 7: Red Hat Single Sign-On 7.6.1: Red Hat Single Sign-On 7.6 for RHEL 7:- Version 0:18.0.3-1.redhat_00002.1.el7sso and below * is unaffected.
- Version 0:18.0.6-1.redhat_00001.1.el7sso and below * is unaffected.
- Version 0:18.0.3-1.redhat_00002.1.el8sso and below * is unaffected.
- Version 0:18.0.6-1.redhat_00001.1.el8sso and below * is unaffected.
- Version 0:18.0.3-1.redhat_00002.1.el9sso and below * is unaffected.
- Version 0:18.0.6-1.redhat_00001.1.el9sso and below * is unaffected.
- Version 7.6-15 and below * is unaffected.
- Version 7.6-20 and below * is unaffected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.