mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-09 23:12:06 -03:30
Closes #16252 Closes #16132 Co-authored-by: Pedro Igor <pigor.craveiro@gmail.com>
This commit is contained in:
parent
6572a64a8b
commit
23207f81cf
@ -202,7 +202,7 @@ public class AuthenticationSessionManager {
|
||||
public boolean test(String id) {
|
||||
StickySessionEncoderProvider encoder = session.getProvider(StickySessionEncoderProvider.class);
|
||||
// in case the id is encoded with a route when running in a cluster
|
||||
String decodedId = encoder.decodeSessionId(cookiesVal.iterator().next());
|
||||
String decodedId = encoder.decodeSessionId(id);
|
||||
// we can't blindly trust the cookie and assume it is valid and referencing a valid root auth session
|
||||
// but make sure the root authentication session actually exists
|
||||
// without this check there is a risk of resolving user sessions from invalid root authentication sessions as they share the same id
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user