Keycloak-services: keycloak-services: 2fa setup enforcement bypass via authentication session restart endpoint
Red Hat build of Keycloak 26.6.8 · Red Hat Single Sign-On 7
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Red Hat Red Hat build of Keycloak 26.6.8 | — | No fix yet |
| Red Hat Red Hat build of Keycloak 26.6.8 | — | No fix yet |
| Red Hat Red Hat build of Keycloak 26.6.8 | — | No fix yet |
| Red Hat Red Hat Single Sign-On 7 | — | No fix yet |
Original description
A flaw was found in the authentication session management of Keycloak, an identity and access management solution. The issue occurs when an administrator enforces a stronger authentication flow, such as mandatory two-factor authentication (2FA) setup, through a client policy. A user can bypass this requirement by manually visiting a specific session restart web link during the login process. This action clears the internal markers that track the required security steps, allowing the user to log in with only a password and gain access without completing the mandated 2FA setup.