Fedora Account System
Red Hat Associate
Red Hat Customer
A flaw was found in the authentication flow selection logic within the keycloak-services component. When Keycloak is configured with a client policy using the auth-flow-enforcer executor to select an authentication flow requiring OTP at a higher Level of Assurance (LoA), it fails to properly re-evaluate the session assurance if the authorization request does not explicitly specify an acr_values parameter or an essential ACR claim. As a result, an existing lower-assurance SSO session (e.g., password-only) is accepted, the OTP requirement is bypassed, and Keycloak issues a signed token asserting the higher ACR claim without verifying the OTP credential. An attacker possessing a valid user password or an active lower-assurance SSO session cookie can exploit this to access protected clients and perform actions requiring multi-factor authentication without providing the second factor.