A flaw was found in Keycloak. Keycloak does not immediately enforce the disabling of the Remember Me realm setting on existing user sessions. Sessions created while Remember Me was active retain their extended session lifetime until they expire, overriding the administrators recent security configuration change. This is a logic flaw in session management increases the potential window for successful session hijacking or unauthorized long-term access persistence. The flaw lies in the session expiration logic relying on the session-local remember-me flag without validating the current realm-level configuration.
According to WASC, “Insufficient Session Expiration is when a web site permits an attacker to reuse old session credentials or session IDs for authorization.”