8000 fix: aligning the anti-phishing check with scim by shawkins · Pull Request #55546 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

fix: aligning the anti-phishing check with scim - #55546

Open
shawkins wants to merge 1 commit into
keycloak:mainfrom
shawkins:iss55533
Open

shawkins wants to merge 1 commit into
keycloak:mainfrom
shawkins:iss55533

Conversation

@shawkins
Copy link
Copy Markdown
Contributor

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.

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>
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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 Forbidden responses 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

@shawkins
shawkins marked this pull request as ready for review November 25, 2026 22:56
@shawkins
shawkins requested review from a team as code owners November 25, 2026 22:56
@shawkins
shawkins requested review from Pepo48 and vmuzikar November 25, 2026 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CVE-2026-136703] Admin API v2 client PUT reveals client-ID existence to unauthorized callers

2 participants

0