Security Advisory: Active Directory Open to More NTLM Attacks
Two vulnerabilities in Microsoft's NTLM authentication allow attackers to bypass the Message Integrity Code (MIC) and other relay mitigations, enabling NTLM relay attacks that can modify authentication messages and potentially compromise Active Directory domains.
preempt.com
Published on preempt.com
Preempt Research Team
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the server trusts the first 'msvAvFlag' field in the NTLM_AUTHENTICATE message without proper validation, and the Domain Controller validates only the LMv2 response when both LMv2 and NTLMv2 are present, allowing attackers to inject a fake flag or modify the NTLMv2 response.
Impact
Attackers could relay authentication to sensitive servers like OWA and ADFS, steal user data, and potentially achieve full domain compromise, especially if SMB signing or EPA is not enforced.
What the attacker needed
NTLM authentication enabled; Server does not enforce signing or EPA; Attacker can intercept NTLM traffic; Client sends LMv2 response (for CVE-2019-1338)
The fix
Microsoft released patches for both vulnerabilities; additionally, enforcing NTLM mitigations such as server signing and EPA, and refusing LM responses, is recommended.
How it was found
- Unset the signing flags in the NTLM_NEGOTIATE message.
- Inject a rogue 'msvAvFlag' field in the NTLM_CHALLENGE message with a value of zeros.
- Remove the MIC from the NTLM_AUTHENTICATE message.
- Unset additional flags in the NTLM_AUTHENTICATE message.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
NTLM is an old authentication protocol used in Windows networks. When a computer logs in, it sends a kind of ticket to the server. Attackers can intercept and forward (relay) this ticket to another server to impersonate the user. These bugs let attackers tamper with the ticket to remove security checks, making such relay attacks easier and more damaging.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.