Skip to content

prevent permission privilege escalation#7

Merged
https-richardy merged 14 commits into
masterfrom
fix/06-prevent-permission-privilege-escalation
Mar 13, 2026
Merged

prevent permission privilege escalation#7
https-richardy merged 14 commits into
masterfrom
fix/06-prevent-permission-privilege-escalation

Conversation

@https-richardy
Copy link
Copy Markdown
Owner

This pull request addresses a privilege escalation vulnerability in the permission management model.

Previously, realms were allowed to create permissions with arbitrary names. Since authorization checks rely on permission identifiers, a realm could create a permission using the same identifier as a system-reserved permission (for example administrative permissions such as viewing or managing realms). By doing so, the realm could associate that permission to itself or to a user and gain access to protected endpoints.

This change introduces a protection mechanism that prevents realms from creating or renaming permissions whose identifiers belong to the system-reserved permission namespace. A dedicated permission namespace policy is now enforced to validate whether a permission name is allowed within the context of the current realm.

With this change in place, reserved system permissions remain controlled exclusively by the system authority, preventing namespace collisions and eliminating the possibility of privilege escalation through forged permission identifiers.

…vention when there is an attempt to create a reserved permission
…sure that reserved permissions cannot be created
… of attempting to create a reserved permission
…ks so that reserved permissions cannot be created, preventing privilege escalation.
@https-richardy https-richardy added the bug Something isn't working label Mar 13, 2026
@https-richardy https-richardy merged commit f7d3468 into master Mar 13, 2026
1 check passed
@https-richardy https-richardy deleted the fix/06-prevent-permission-privilege-escalation branch March 13, 2026 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant