Claude Opus 5.5 · Balanced

fixing-re-authentication-with-passkeys-keycloak

Keycloak · Java · S · 30–99 lines · 6 files

The normal review, with one generalist agent. Judge: Claude Haiku 5.5.

Gold bugs found
0 of 0
Comments published
1
Comments matching a bug
0
Comments not matching
1
Cost of this PR
$0.656

Published comments (1)

mediumsecurityservices/src/main/java/org/keycloak/authentication/authenticators/browser/UsernamePasswordForm.java:137-140

Failed login exposes the attempted user's passkey credential IDs — Because `clearUser` runs after `challenge`, a wrong password with a guessed username makes `fillContextForm` render that account's WebAuthn credential IDs, which lets anyone enumerate accounts and harvest credential IDs. Take the identified-user path only when `USER_SET_BEFORE_USERNAME_PASSWORD_AUTH` is set, and otherwise fill the form as if no user were known.

Gold bugs found (0)

None.

Gold bugs missed (0)

None.