REDHAT-BUG-2450245: Medium severity Keycloak Keycloak Authorization Services vulnerability
Summary:
IDOR vulnerability in the Keycloak Authorization Services Protection API endpoint /realms/{realm}/authz/protection/resourceset/{id} allows authenticated clients to perform GET, PUT, and DELETE operations on resources belonging to other Resource Servers within the same realm. The endpoint fails to validate that the requested resource UUID belongs to the calling Resource Server.
Requirements to exploit:
Attacker must possess valid client credentials for any Resource Server with Authorization Services enabled in the target realm, and must know or obtain the UUID of a resource belonging to another Resource Server.
Steps to reproduce:
1. Configure a Keycloak realm with two clients (clientA, clientB) with Authorization Services enabled and allowRemoteResourceManagement=true 2. Create a resource under clientB and note its UUID 3. Obtain a clientcredentials token for clientA using its client secret 4. Using clientA's token, send GET /realms/{realm}/authz/protection/resourceset/{clientB-resource-uuid} — returns 200 with clientB's resource data 5. Send PUT to the same endpoint with modified payload — returns 204, resource is modified 6. Send DELETE to the same endpoint — note: triagers reported this fails with an authorization error in 26.5.4, but GET and PUT succeed 7. Confirm modification by querying with clientB's token
Affected Software
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2450245?
The severity of REDHAT-BUG-2450245 is considered high due to the potential for unauthorized access to sensitive resources.
How do I fix REDHAT-BUG-2450245?
Fixing REDHAT-BUG-2450245 involves applying the latest security updates to the Keycloak Authorization Services that address this IDOR vulnerability.
Who is affected by REDHAT-BUG-2450245?
REDHAT-BUG-2450245 affects authenticated clients using Keycloak Authorization Services that operate within the same realm.
What actions can be exploited due to REDHAT-BUG-2450245?
Exploiting REDHAT-BUG-2450245 allows authenticated clients to perform unauthorized GET, PUT, and DELETE operations on resources owned by other Resource Servers.
Is there a workaround for REDHAT-BUG-2450245?
Currently, applying the latest patches is the recommended mitigation for REDHAT-BUG-2450245, with no specific workarounds available.