Fedora Account System
Red Hat Associate
Red Hat Customer
A Missing Authorization flaw was found in the Keycloak Admin REST API users/count endpoint. While the primary users endpoint correctly restricts results based on the view-users permission, the companion count endpoint accepts the same filtering parameters but performs the count across all users in the realm without applying per-user authorization checks. An authenticated attacker with the query-users role can exploit this behavior by sending multiple filtered requests to the GET /admin/realms/{realm}/users/count endpoint. By observing the returned count, the attacker can perform a side-channel attack to reconstruct PII including usernames, email addresses, and first/last names, as well as verify the values of sensitive custom user attributes. This issue only affects realms where fine-grained admin permissions (v2) are not enabled.