Repository navigation
Conversation
all operations now perform an initial typeProvider.get, which enforces access rights - including the the phishing check closes: CVE-2026-136703 closes: keycloak#55533 Signed-off-by: Steve Hawkins <shawkins@redhat.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the change to authorize client lookups before validating PUT client IDs.
No open issues 🎉
What changed in this PR
This PR addresses client-ID existence disclosure in Admin API v2 (#55533) by relying on the shared provider authorization check before validating PUT client IDs.
Changes:
- Moves PUT client-ID consistency validation after the authorized client lookup.
- Removes the separate anti-phishing check from the client subresource locator.
- Adds regression assertions for consistent
403 Forbiddenresponses when unauthorized callers use existing, nonexistent, or mismatched client IDs.
| File | Description |
|---|---|
rest/admin-v2/tests/src/test/java/org/keycloak/tests/admin/client/v2/ClientApiV2AuthorizationTest.java |
Adds unauthorized PUT regression cases. |
rest/admin-v2/services/src/main/java/org/keycloak/rest/admin/api/client/DefaultClientsApi.java |
Removes the separate anti-phishing check. |
rest/admin-v2/services/src/main/java/org/keycloak/rest/admin/api/client/DefaultClientApi.java |
Performs the authorized lookup before client-ID validation. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
all operations now perform an initial typeProvider.get, which enforces access rights - including the the phishing check
closes: CVE-2026-136703
closes: #55533
This is just a minimal change. We have a separate upstream issue about further consolidating where model get calls happen.
It's subjective whether the same id check needs moved - a 400 in previous location does not reveal any information, but moving makes the error consistent regardless of where the mismatch is and is consistent with patch handling.