Active Directory Certificate Services Elevation of Privilege Vulnerability (CVE-2024-49019)
A vulnerability in Active Directory Certificate Services allows an attacker to gain domain administrator privileges by exploiting version 1 certificate templates that have the subject name supplied in the request and are not properly secured. The attacker could obtain a certificate that grants elevated access.
Originally disclosed on Microsoft
FAQ
What privileges could be gained by an attacker who successfully exploited the vulnerability? An attacker who successfully exploited this vulnerability could gain domain administrator privileges.
FAQ
What types of certificates are vulnerable to this type of attack? Certificates created using a version 1 certificate template with Source of subject name set to "Supplied in the request" are potentially vulnerable if the template is not secured according to the best practices published in the Securing Certificate Templates section of Securing PKI: Technical Controls for Securing PKI | Microsoft Learn .
FAQ
How do I know if my PKI environment is vulnerable to this type of attack? Check if you have published any certificates created using a version 1 certificate template where the Source of subject name is set to "Supplied in the request" and the Enroll permissions are granted to a broader set of accounts, such as domain users or domain computers. An example is the built-in Web Server template, but it is not vulnerable by default due to its restricted Enroll permissions.
Role: Windows Active Directory Certificate Services
Role: Windows Active Directory Certificate Services
Microsoft
Microsoft
Customer Action Required
Yes
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the use of version 1 certificate templates with the subject name supplied in the request and overly broad enrolment permissions, allowing an attacker to obtain a certificate with an arbitrary subject name.
What the attacker needed
A vulnerable version 1 certificate template; Template allows subject name supplied in request; Broad enrolment permissions (e.g., domain users)
The fix
The vulnerability should be fixed by securing certificate templates according to best practices, such as restricting enrolment permissions and avoiding version 1 templates with subject name supplied in the request.
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 report has not been written yet. The Original tab links to the source.
Active Directory Certificate Services (AD CS) is a system that issues digital certificates for proving identity in a Windows network. A certificate template is a blueprint for creating certificates. If a template lets the person requesting a certificate choose their own identity (the subject name) and is not locked down, an attacker can request a certificate that claims to be a domain administrator and then use it to take over the network.
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.