Fedora Account System
Red Hat Associate
Red Hat Customer
A flaw was found in Keycloaks JWT Authorization Grant (grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer) implementation. The token redemption path on the token endpoint fails to consult the BruteForceProtector to check for temporary account lockouts. When resolving a local user from a signed assertion, the code only verifies that the user exists, is enabled, and has no pending required actions. Since a temporary brute-force lockout does not set the enabled flag to false, a locked user successfully passes these checks. Exploitation requires that the realm has brute-force detection enabled, a JWT Authorization Grant identity provider is configured, and the attacker can present a valid assertion signed by the trusted issuer for the locked user. Successful exploitation allows an attacker to obtain valid access tokens for a user account that is currently in a brute-force-locked state, effectively bypassing the lockout policy.