Skip to content

Commit c508628

Browse files
committed
Add an ESC15 template
1 parent bd7a24e commit c508628

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
# Creates a template that will be vulnerable to ESC15 (subject name supplied in
3+
# the request and schema version is 1). Fields are based on the SubCA template.
4+
# For field descriptions, see:
5+
# https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-crtd/b2df0c1c-8657-4684-bb5f-4f6b89c8d434
6+
showInAdvancedViewOnly: 'TRUE'
7+
# this security descriptor grants all permissions to all authenticated users
8+
nTSecurityDescriptor: D:PAI(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;AU)
9+
flags: 0
10+
pKIDefaultKeySpec: 2
11+
pKIKeyUsage: !binary |-
12+
hgA=
13+
pKIMaxIssuingDepth: -1
14+
pKICriticalExtensions:
15+
- 2.5.29.19
16+
- 2.5.29.15
17+
pKIExtendedKeyUsage:
18+
# Server Authentication OID (alter the EKUs via ESC15)
19+
- 1.3.6.1.5.5.7.3.1
20+
pKIExpirationPeriod: !binary |-
21+
AEAepOhl+v8=
22+
pKIOverlapPeriod: !binary |-
23+
AICmCv/e//8=
24+
pKIDefaultCSPs: 1,Microsoft Enhanced Cryptographic Provider v1.0
25+
msPKI-RA-Signature: 0
26+
msPKI-Enrollment-Flag: 0
27+
# CT_FLAG_EXPORTABLE_KEY
28+
msPKI-Private-Key-Flag: 0x10
29+
# CT_FLAG_ENROLLEE_SUPPLIES_SUBJECT
30+
msPKI-Certificate-Name-Flag: 1
31+
msPKI-Minimal-Key-Size: 2048
32+
msPKI-Template-Schema-Version: 1

modules/auxiliary/admin/ldap/ad_cs_cert_template.rb

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ class MetasploitModule < Msf::Auxiliary
2626
'displayName',
2727
'instanceType',
2828
'revision',
29-
'msPKI-Template-Schema-Version',
3029
'msPKI-Template-Minor-Revision',
3130
].freeze
3231

0 commit comments

Comments
 (0)