Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report Schema Version During Template Enumeration (feature request) #184

Open
e-nzym3 opened this issue Nov 17, 2023 · 1 comment
Open

Comments

@e-nzym3
Copy link

e-nzym3 commented Nov 17, 2023

Hello!

Submitting this request to see if it's possible for Certipy to also return the Schema Version of each template within the enumeration output. This would be extremely helpful when dealing with ESC3 exploit scenarios.

I know that PSPKIAudit is able to pull it down:

[!] Potentially vulnerable Certificate Templates:

CA                      : dc.theshire.local\theshire-DC-CA
Name                    : ESC1Template
SchemaVersion           : 2
OID                     : ESC1 Template (1.3.6.1.4.1.311.21.8.10395027.10224472.4213181.15714845.1171465.9.10657968.9897558)
VulnerableTemplateACL   : False
LowPrivCanEnroll        : True
EnrolleeSuppliesSubject : True
EnhancedKeyUsage        : Client Authentication (1.3.6.1.5.5.7.3.2)|Secure Email (1.3.6.1.5.5.7.3.4)|Encrypting File System (1.3.6.1.4.1.311.10.3.4)

I realize PSPKIAudit runs off PowerShell which may grant it additional visibility. Wondering if Certipy is able to do the same. If not, feel free to close the issue.

Thank you for all your contribution to the community!

@SAERXCIT
Copy link
Contributor

Hi! You can check out PR#133 #133 which gets this information and uses it to compute all conditions for exploitation of ESC3.
Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants