Skip to content
Access control Write-up Intermediate

SCIM Hunting - Beyond SSO

The write-up describes how SCIM provisioning endpoints are often left without authentication, letting an attacker create a new user in the identity provider's user pool and then log in with it. It also lists further SCIM design weaknesses such as token handling, re-provisioning and attribute manipulation that testers should look for.

blog.doyensec.com

Published on blog.doyensec.com

Single Sign-On (SSO) related bugs have gotten an incredible amount of hype and a lot of amazing public disclosures in recent years. Just to cite a few examples:

Francesco Lacerenza, on blog.doyensec.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 server library shipped with authentication disabled by default and the deployment did not add its own authentication layer.

Impact

An unauthenticated attacker could create a user account in the identity provider and sign in with it, though the created email had to match the configured domains.

What the attacker needed

Reachable SCIM endpoint; email in a configured domain

The fix

The maintainers released a new version that includes a fix.

How it was found

  1. Send a SCIM create-user request to the exposed SCIM endpoint with an email in the configured internal domain.
  2. Log in to the identity provider dashboard using the newly created account.

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 one system automatically create and update user accounts in another system, usually an identity provider syncing users into an app. The library used to build the SCIM server did not require any login by default, so anyone who could reach the endpoint could add a user. The attacker then signed in to the dashboard with that new account.

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.

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.