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 when cert server does not request NTLM auth #1

Merged
merged 2 commits into from
Aug 15, 2021
Merged

Fix when cert server does not request NTLM auth #1

merged 2 commits into from
Aug 15, 2021

Conversation

Tw1sm
Copy link

@Tw1sm Tw1sm commented Aug 4, 2021

Bumped into this scenario on a pentest and made a couple edits to allow the ADCS attack to still run.

If the IIS cert server is configured to allow anonymous authentication and Windows NTLM auth, the cert server will default to anonymous auth and will not prompt for NTLM authentication.

2021-08-03_20-55-41

When ntlmrelayx encounters this, it won't relay the authentication because it's not requested by the cert server:

2021-08-03_22-51-38

I've added a small fix into the httprelayclient to send NTLM authentication, even if not requested, when performing the ADCS attack. This allows the attack to generate a certificate:

2021-08-04_00-18-31

Also added in some code from this implementation of the attack to prevent clients from being attacked multiple times and causing multiple certificates to be generated.

@ExAndroidDev
Copy link
Owner

Great. Thanks!

@ExAndroidDev ExAndroidDev merged commit da1d564 into ExAndroidDev:ntlmrelayx-adcs-attack Aug 15, 2021
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