You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Account API lets a resource owner share an owned resource through PUT /realms/{realm}/account/resources/{id}/permissions. The endpoint does not check whether owner-managed access is enabled for the resource. It also accepts any scope defined on the resource server, including scopes that are not assigned to the shared resource. The endpoint then creates an already-granted permission ticket for that scope.
When the requesting party sends a ticketless UMA authorization request, Keycloak treats the granted ticket as authoritative, skips policy evaluation, and issues a Requesting Party Token (RPT) containing the unauthorized resource and scope. The corresponding Protection API path performs both checks, so the Account API is inconsistent with it.
The impact is limited to resources owned by the attacker. No access to another user's data and no concrete harmful action by the resource server was demonstrated.
Version
26.8.2
Expected behavior
The Account API rejects sharing when owner-managed access is not enabled for the resource, and rejects scopes that are not assigned to the shared resource, as the Protection API does. A ticketless UMA request only results in an RPT with scopes that belong to the resource.
Actual behavior
The Account API returns 204 No Content and persists a granted permission for a scope outside the resource definition, even when owner-managed access is disabled. The requesting party then obtains an RPT containing the resource and the unauthorized scope, without policy evaluation.
This issue was originally tracked in the private repository. Migrated by @abstractj.
Activity