Skip to content
Access control Write-up Advanced

ADCS ESC13 Abuse Technique

A certificate template was configured with an issuance policy linked to an AD group, so any principal with enrolment rights could obtain a certificate that made AD treat them as a member of that group. An attacker could then authenticate with the certificate and gain the group's permissions, escalating privileges.

Jonas Bülow Knudsen Follow

Published on posts.specterops.io

It is possible to configure an Active Directory Certificate Services (ADCS) certificate template with an issuance policy having an OID group link to a given AD group. This configuration makes AD treat principals authenticating with a certificate of this template as members of the group, even though the principals are…

Jonas Bülow Knudsen, 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 certificate template's issuance policy was linked to a privileged group via the msDS-OIDToGroupLink attribute, and enrolment rights were granted too broadly.

What the attacker needed

Enrolment rights on a vulnerable template; template has an issuance policy with OID group link; template allows client authentication; CA trusted for NT authentication

The fix

Ensure only the right principals can enrol in certificate templates linked to privileged groups, and audit for non-default permissions on issuance policy objects.

How it was found

  1. Request a certificate from the vulnerable template using a tool like Certify.
  2. Convert the certificate and private key into a PFX file.
  3. Verify the certificate contains the Client Authentication EKU and the linked issuance policy.
  4. Request a Kerberos TGT using the certificate with a tool like Rubeus.
  5. Decrypt the TGT to confirm the group's RID is present in the PAC.
  6. Use the TGT to access resources permitted to the group.

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.

Active Directory (AD) is a directory service that stores users and groups. Certificate Services (ADCS) issues digital certificates that can be used to log in. A certificate template can include a policy that is linked to a group; if you get a certificate from that template, AD will treat you as a member of that group even if you are not. This means someone who can request such a certificate can gain the group's access rights.

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.