Skip to content
Access control Write-up Advanced

SCCM Hierarchy Takeover

SCCM role-based access control is not a security boundary between sites in a hierarchy, so an attacker who gains write access to any primary site database can grant themselves Full Administrator rights, which replicate to the central administration site and all other primary sites, taking over the entire hierarchy.

Chris Thompson Follow

Published on posts.specterops.io

When an administrative user is granted a security role in SCCM, such as Full Administrator or Infrastructure Administrator, in any primary site, the underlying database changes propagate upward to the central administration site (CAS) and then to other primary sites in the hierarchy.

Chris Thompson, on posts.specterops.io

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, SCCM replicates all security role assignments across the hierarchy by design, so there is no administrative boundary between sites.

Impact

An attacker with write access to any primary site database can take over the entire SCCM hierarchy, potentially crossing forest boundaries and compromising tier-zero assets, unless NTLM relay protections or firewall rules prevent the attack.

What the attacker needed

Write access to a primary site database; NTLM relay protections not required; firewall rules not restricted

The fix

The report recommends using a standalone primary site instead of a CAS, treating all site systems as tier-zero, and enforcing SMB signing, EPA, LDAP signing, MFA, and firewall rules to prevent NTLM relay.

How it was found

  1. Coerce NTLM authentication from a site server using PetitPotam or SpoolSample.
  2. Relay the authentication to the site database, SMS Provider, or passive site server.
  3. Execute SQL statements to add a user to the Full Administrator role and grant All Objects, All Systems, and All Users scopes.
  4. The changes replicate to the central administration site and other primary sites, granting full control of the hierarchy.

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.

SCCM is a Microsoft tool for managing Windows computers. It can be set up with multiple sites that replicate data to each other. The report shows that if an attacker can write to the database of any one site, they can give themselves full admin rights, and those rights spread to every other site, so the whole system is compromised.

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.