/sessions
endpoint returns sessions with complete identities even when configured AAL for whoami isn't reached
#3671
Labels
bug
Something is not working.
Preflight checklist
Ory Network Project
No response
Describe the bug
When
required_aal
for whoami is set ashighest_available
, Kratos will avoid leaking identity information without a valid AALkratos/selfservice/flow/login/hook.go
Lines 230 to 231 in 0c5ea9b
kratos/session/handler.go
Lines 229 to 236 in 0c5ea9b
Unfortunately, this check is only performed on
/sessions/whoami
, allowing other/sessions
requests without a higher AAL - leaking the user's identity.Reproducing the bug
required_aal
set tohighest_available
, and an identity that supports AAL2/sessions
Relevant log output
No response
Relevant configuration
Version
master, but could be reproduced on 1.0.0
On which operating system are you observing this issue?
None
In which environment are you deploying?
None
Additional Context
No response
The text was updated successfully, but these errors were encountered: