Skip to content
Access control Write-up Intermediate

Privilege Escalation Using Scim Provisioning

A user holding a custom role limited to the security section could set up SCIM provisioning and create a matching user at the identity provider with the user type set to admin. When SCIM synced back, the existing low-privilege account was updated to full admin access.

Ronak Patel Follow

Published on infosecwriteups.com

This Write-Up is about the same program i mentioned in my another article “https://medium.com/@ronak-9889/admin-account-takeover-ab7535fe0fdb”

Ronak Patel, on infosecwriteups.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the SCIM sync applied the identity provider's user type attribute to the existing account without checking it against the app's own role restrictions.

Impact

A user with only security-section access could escalate their own account to full administrator.

What the attacker needed

A custom role with security-section access; ability to configure an identity provider; SCIM provisioning enabled

How it was found

  1. Create a custom role that only grants access to the security section and assign it to a user.
  2. As that user, open the security section and generate the SCIM provisioning URL and token.
  3. Add the app at the identity provider and enable SCIM with that URL and token.
  4. Create a user at the identity provider with the same email and username, setting the user type to admin.
  5. Observe that the existing account at the target is updated and gains full admin access.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

SCIM is a standard that lets a company's identity provider (such as Okta) automatically create and update user accounts in another app. Here, the app trusted the user type sent by the identity provider more than its own role settings, so a low-privilege user could push an 'admin' label through the sync and become an administrator.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by Ronak Patel

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.