Skip to content
Access control Write-up Advanced

Site Takeover via SCCM’s AdminService API

The SCCM AdminService API uses Microsoft Negotiate authentication, which falls back to NTLM, and the site server machine account is a member of the SMS Admins group by default. An attacker with valid domain credentials could coerce authentication from the site server and relay it to a remote SMS Provider's AdminService API to add an arbitrary user as a full administrator, leading to site takeover.

Garrett Foster Follow

Published on posts.specterops.io

Before I get started, I’d like to acknowledge some of the work previously done that inspired researching SCCM.

Garrett Foster, 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 the AdminService API supports NTLM authentication and the site server machine account is a member of the SMS Admins group by default, enabling NTLM relay attacks.

Impact

An authenticated attacker with valid domain credentials and network connectivity to the relevant server roles could add an arbitrary user as a full administrator of the SCCM site, but the site server cannot be relayed to itself, so a remote SMS Provider must exist.

What the attacker needed

Valid domain credentials; network connectivity to server roles; remote SMS Provider present

The fix

The text does not state a specific fix, but suggests monitoring SMS Admins group membership changes, using host-based firewall rules to restrict access to the AdminService API, and considering PKI or Windows Hello for Business for authentication.

How it was found

  1. Configure ntlmrelayx to target the AdminService on the SMS Provider and provide the logonname, displayname, and object-sid values.
  2. Configure PetitPotam or a similar tool to coerce authentication from the primary site server to the relay server.
  3. The relay server receives the incoming connection and relays the authentication to the AdminService API, adding the supplied user as an admin.

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 Microsoft's tool for managing large numbers of Windows computers. The AdminService API is a web interface that lets administrators manage SCCM, and it accepts a type of login called NTLM, which is vulnerable to a trick where an attacker tricks a server into proving its identity to the attacker's machine, then forwards that proof to another service. Because the SCCM site server's computer account is automatically an administrator, an attacker who can trigger the server to authenticate to them can relay that authentication to the AdminService and grant themselves full control.

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 Garrett Foster

View all

1 more disclosed report, 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.