8000 Fail assigning an ID when creating resources by pedroigor · Pull Request #54603 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Fail assigning an ID when creating resources - #54603

Merged
ahus1 merged 1 commit into
keycloak:mainfrom
pedroigor:issue-54452
Nov 4, 2026
Merged

ahus1 merged 1 commit into
keycloak:mainfrom
pedroigor:issue-54452

Conversation

@pedroigor
Copy link
Copy Markdown
Contributor

Closes #54452

Closes keycloak#54452

Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
@pedroigor
pedroigor requested a review from a team as a code owner November 3, 2026 18:26
Copilot AI balanced review requested due to automatic review settings November 3, 2026 18:26
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

There are no active review issues for the change rejecting client-supplied IDs during UMA resource registration.

No open issues 🎉

What changed in this PR

This PR addresses #54452 by rejecting client-supplied IDs during UMA resource registration, preventing callers from modifying existing resources through the creation endpoint.

Changes:

  • Return HTTP 400 when a resource creation request includes an ID.
  • Add an integration test verifying that rejected requests leave existing resources unchanged and normal creation still generates an ID.
File Description
tests/​base/​src/​test/​java/​org/​keycloak/​tests/​authz/​services/​uma/​ProtectionApiTest.java Adds regression coverage for cross-user overwrite prevention and normal resource creation.
services/​src/​main/​java/​org/​keycloak/​authorization/​protection/​resource/​ResourceService.java Rejects resource creation requests containing a client-supplied ID.

Review effort: Balanced

@ahus1
ahus1 merged commit b1a872a into keycloak:main Nov 4, 2026
97 checks passed
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-118947] Authorization Bypass via UMA Registration

4 participants

0