You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug or feature: Role escalation by joining groups
#36378
I'm administering a keycloak instance with lots of users and want to allow customer support to manage other users.
(Context: Everything I say happens in the same realm, the master realm is not being used)
I could grant each support user the required roles manually and this would be safe. If they have the manage-users role, they couldn't grant themself or others roles they don't have. But I want to manage the roles of users via groups, which allows me to grant and revoke roles for all users of that group and so makes administering much easier.
But while setting up groups, I've noticed a loophole. If there's a group for administrators with roles like realm-admin, my support users with manage-users role could invite themselfes into this admin group and by that grant themself that group's roles, which they shouldn't have
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm administering a keycloak instance with lots of users and want to allow customer support to manage other users.
(Context: Everything I say happens in the same realm, the master realm is not being used)
I could grant each support user the required roles manually and this would be safe. If they have the
manage-usersrole, they couldn't grant themself or others roles they don't have. But I want to manage the roles of users via groups, which allows me to grant and revoke roles for all users of that group and so makes administering much easier.But while setting up groups, I've noticed a loophole. If there's a group for administrators with roles like
realm-admin, my support users withmanage-usersrole could invite themselfes into this admin group and by that grant themself that group's roles, which they shouldn't haveSo my question is: Is this a bug or a feature?
All reactions