ADCS
Identify templates
$ certipy find -username 'user@domain.local' -password '[REDACTED]' -vulnerable -stdout
[...]
[*] Enumeration output:
Certificate Templates
1
Template Name : VPNCert
Display Name : VPN Cert
Certificate Authorities : dc-root-ca
Enabled : True
[...]
Permissions
Enrollment Permissions
Enrollment Rights : DOMAIN.LOCAL\Domain Admins
DOMAIN.LOCAL\Domain Users
DOMAIN.LOCAL\Enterprise Admins
DOMAIN.LOCAL\Authenticated Users
Object Control Permissions
Owner : S-1-5-21-XXXXXXXX-YYYYYYYYYY-ZZZZZZZZZZ-RID
Write Owner Principals : DOMAIN.LOCAL\Authenticated Users
[...]
Write Dacl Principals : DOMAIN.LOCAL\Authenticated Users
[...]
Write Property Principals : DOMAIN.LOCAL\Authenticated Users
[...]
[!] Vulnerabilities
ESC1 : 'DOMAIN.LOCAL\\Domain Users' and 'DOMAIN.LOCAL\\Authenticated Users' can enroll, enrollee supplies subject and template allows client authentication
ESC4 : 'DOMAIN.LOCAL\\Authenticated Users' has dangerous permissionsESC1
Request new certificate
Verify certificate
ESC4
Download template
Verify templates
Restore template
Troubleshooting
Certificate request not supported (or similar)
Last updated