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.
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.
According to WASC, "Insufficient Session Expiration is when a web site permits an attacker to reuse old session credentials or session IDs for authorization."
Link | Tags |
---|---|
https://access.redhat.com/errata/RHSA-2022:8961 | vendor advisory |
https://access.redhat.com/errata/RHSA-2022:8962 | vendor advisory |
https://access.redhat.com/errata/RHSA-2022:8963 | vendor advisory |
https://access.redhat.com/errata/RHSA-2022:8964 | vendor advisory |
https://access.redhat.com/errata/RHSA-2022:8965 | vendor advisory |
https://access.redhat.com/errata/RHSA-2023:1043 | vendor advisory |
https://access.redhat.com/errata/RHSA-2023:1044 | vendor advisory |
https://access.redhat.com/errata/RHSA-2023:1045 | vendor advisory |
https://access.redhat.com/errata/RHSA-2023:1047 | vendor advisory |
https://access.redhat.com/errata/RHSA-2023:1049 | vendor advisory |
https://access.redhat.com/security/cve/CVE-2022-3916 | vdb entry vendor advisory |
https://bugzilla.redhat.com/show_bug.cgi?id=2141404 | vendor advisory issue tracking |