Skip to content
Access control Write-up Advanced

Certified Pre-Owned

Active Directory Certificate Services was found to be widely misconfigured in ways that let low-privileged users request certificates with an arbitrary subject alternative name, then use them to authenticate as any domain user. The research documents several template and CA misconfigurations (ESC1 through ESC6) that can lead to domain escalation and long-term credential persistence.

Will Schroeder Follow

Published on posts.specterops.io

For the past several months, we (Will Schroeder and Lee Christensen) have been diving into the security of Active Directory Certificate Services (AD CS). While several aspects of Active Directory have received thorough attention from a security perspective, Active Directory Certificate Services has been relatively…

Will Schroeder, 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 certificate templates and CA settings were configured to let low-privileged users enrol and supply their own subject alternative name, so the CA signed certificates for identities the requester did not own.

Impact

An attacker could escalate to any user in the domain, including domain admin, and keep access even after the victim resets their password; the text notes nearly every environment examined was vulnerable.

What the attacker needed

AD CS deployed in the domain; low-privileged enrolment rights on a template; template allows requester-supplied SAN

The fix

Certificate templates and CA settings should be tightened so low-privileged users cannot supply their own subject alternative name and cannot enrol in templates that grant authentication, with manager approval and authorised signatures enforced.

How it was found

  1. Find certificate templates that allow authentication and are open to low-privileged enrolment.
  2. Request a certificate from such a template, supplying an arbitrary subject alternative name for the target user.
  3. Use the issued certificate to authenticate to Active Directory as that user.

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.

A certificate is a signed digital document that proves who you are, a bit like a passport issued by a trusted office. Active Directory Certificate Services is Microsoft's office that hands these out, and if its settings are too loose, a normal user can ask for a passport with someone else's name on it. That fake passport then lets them log in as that person, including 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 from Microsoft

View all

The newest disclosed reports for this program.

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.