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

Fix the vulnerable template "Flags" attribute in order to work with Schannel (PassTheCert) #69

Merged
merged 1 commit into from
Aug 5, 2022

Conversation

antuache
Copy link
Contributor

@antuache antuache commented Aug 5, 2022

Hi @ly4k!

We've noticed that, when exploiting ESC4, the CT_FLAG_IS_CA flag (present in the default SubCA template) generates a certificate that is not compatible with PassTheCert, which uses Schannel for LDAP authentication.
image

Setting the Flags attribute to 0 fixes the issue and makes the certificate work both with PKINIT and Schannel. You can specifically disable the CT_FLAG_IS_CA attribute only if you prefer, but it seems that the other flags are not required either.
image

More info about Schannel: https://offsec.almond.consulting/authenticating-with-certificates-when-pkinit-is-not-supported.html

Thanks!

@ly4k
Copy link
Owner

ly4k commented Aug 5, 2022

Hello @antuache Thanks for recreating the PR. I'm sorry for the inconvenience. Merging :)

@ly4k ly4k merged commit 4f706e2 into ly4k:main Aug 5, 2022
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

Successfully merging this pull request may close these issues.

2 participants