NokiaTube | New address | Mode Phone | Off high quality for Nokia Browser
Skip to content

UMA permission tickets can be created for scopes not assigned to the resource #55590

Todo

Description

@pedroigor

Before reporting an issue

I have read and understood the above terms for submitting issues.

Area

authorization-services

Bug Description

A denied UMA ticket request can create a pending permission ticket for a resource-server scope that is not assigned to the target resource. The resource owner can then approve the malformed ticket through the Account API.

Version

26.8.2

Regression

The issue is not established as a regression.

Expected behavior

A permission ticket must associate only scopes assigned to its target resource. Creating or approving a ticket for an unrelated resource/scope pair should be rejected.

Actual behavior

A requester with a valid ticket for resource#read can add scope=write, where write exists on the resource server but is absent from the target resource.

The denied request persists a pending resource#write ticket. The resource owner can approve it through the Account API, leaving a granted ticket for an invalid resource/scope pair.

How to Reproduce?

  1. Create a user-owned resource with owner-managed access and assign only the read scope.
  2. Define write on another resource in the same resource server.
  3. Create a signed permission ticket for resource#read.
  4. Submit the ticket to the UMA token endpoint with scope=write and submit_request=true.
  5. Confirm that the denial creates a pending resource#write ticket.
  6. Approve the ticket as the resource owner through the Account API.
  7. Verify that the granted ticket associates write with a resource that does not define it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/authorization-serviceskind/bugstatus/triageteam/core-iam

Type

Fields

No fields configured for bug.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions