From NTAuthCertificates to “Silver” Certificate
A user without special privileges had write access to the NTAuthCertificates object in Active Directory, allowing them to add a fake self-signed CA certificate. An attacker could then forge authentication certificates for any user, but only if they also have high privileges to add the fake CA to the Domain Controller's trusted root store and set up a CRL distribution point.
In a recent assessment, I found that a user without special privileges had the ability to make changes to the NTAuthCertificatesobject. This misconfiguration piqued my curiosity, as I wanted to understand how this could potentially be exploited or misused.
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 a misconfiguration in Active Directory permissions allowed an unprivileged user to modify the NTAuthCertificates object, but the full attack also required adding the fake CA to the DC's trusted root store and configuring a CRL distribution point.
Impact
An attacker with write access to NTAuthCertificates could forge authentication certificates for any user, but only if they also have high privileges to add the fake CA to the DC's trusted root store and set up a CRL distribution point; without those, the attack fails with KDC_ERROR_CLIENT_NOT_TRUSTED.
What the attacker needed
Write access to NTAuthCertificates object; high privileges to add fake CA to DC trusted root; ability to host a CRL distribution point
The fix
The text does not state a specific fix, but the misconfiguration should be fixed by removing unnecessary write permissions on the NTAuthCertificates object and monitoring changes to it.
How it was found
- Confirm that the unprivileged user has write access to the NTAuthCertificates object.
- Create a fake self-signed CA certificate and private key using openssl.
- Add the fake CA's public certificate to the cACertificate attribute of the NTAuthCertificates object using certutil.
- Create a PFX file from the fake CA's key and certificate.
- Forge a certificate for the Domain Admin using certipy or ForgeCert.
- Attempt to authenticate with the forged certificate; initially fails with KDC_ERROR_CLIENT_NOT_TRUSTED.
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.
In Windows Active Directory, a special object called NTAuthCertificates lists which certificate authorities are trusted for logging in. If a normal user can edit that list, they could add their own fake authority and create fake login certificates. However, the report shows that just editing that list is not enough: the fake authority must also be trusted by the domain controller itself, which normally requires high privileges.
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.