Repository navigation
Description
Describe the bug
A client can enforce a minimum authentication level through the "Minimum ACR Value" client setting, which is documented as the server-side way to enforce step-up authentication. The authorization endpoint applies that minimum, so the second factor is demanded. The credential reset endpoint (/realms/{realm}/login-actions/reset-credentials?client_id=...&redirect_uri=...) also creates a login session for a client, but that session never receives the client's required level.
A user who starts the login at that endpoint and follows the "Back to login" link gets the regular login form. Because no level is required, the conditional second-factor subflow is skipped and the login completes with the first factor only. Keycloak then issues an authorization code, which the client can redeem for an access token and a refresh token carrying the level the first factor reached (acr=1).
This only affects realms that enforce the second factor through "Condition - Level of Authentication" subflows (step-up flows) and where "Forgot password" is enabled. The same defect was fixed for the Device Authorization Grant and CIBA in CVE-2026-105305. This is a further entry point with the same missing step. The same omission exists when a login is continued from an action token link (password reset, verify email or execute-actions email), which is narrower because it needs a valid action token.
Against the built-in administration console, whose minimum ACR is set to a second-factor level, a token obtained this way works against the Admin API. This also relies on the missing PKCE enforcement at the token endpoint on the same entry point, tracked separately in #55064.
Version
<= 26.8.2 (reproduced on 26.8.2, also affected on main by code reading)
Expected behavior
A login started at the credential reset endpoint applies the client's configured minimum ACR (and default ACR values), as the authorization endpoint does. The second factor is required before an authorization code is issued.
Actual behavior
The login session created at the credential reset endpoint carries no requested level of authentication. The conditional second-factor subflow is skipped, and an authorization code is issued after the first factor only. The resulting tokens have acr=1.
This issue was originally tracked in the private repository. Migrated by @abstractj.
Metadata
Metadata
Assignees
Labels
Type
Fields
Projects
- StatusShow more project fieldsOpen
Activity
Fix second factor got skipped when login started from forgot password…
Fix second factor got skipped when login started from forgot password…