VDB
Sign up
MEDIUM6.8

GHSA-97g8-xfvw-q4hg

Keycloak vulnerable to session takeover with OIDC offline refreshtokens

Quick fix

GHSA-97g8-xfvw-q4hg — org.keycloak:keycloak-parent: upgrade to the fixed version with the command below.

# pom.xml: bump <version>20.0.2</version> for org.keycloak:keycloak-parent

Details

An issue was discovered in Keycloak when using a client with the `offline_access` scope. Reuse of session ids across root and user authentication sessions and a lack of root session validation enabled attackers to resolve a user session attached to a different previously authenticated user.

This issue most affects users of shared computers. Suppose a user logs out of their account (without clearing their cookies) in a mobile app or similar client that includes the `offline_access` scope, and another user authenticates to the application. In that case, it will share the same root session id, and when utilizing the refresh token, they will be issued a token for the original user.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.keycloak:keycloak-parent
Introduced in: 0Fixed in: 20.0.2
Fix# pom.xml: bump <version>20.0.2</version> for org.keycloak:keycloak-parent

References