Hands-On Exploitation of CVE-2025–54918
A flaw in Active Directory NTLM authentication to LDAP allows a low-privileged domain user to relay the domain controller's own authentication back to itself and escalate to domain admin. The attacker creates a crafted DNS record and coerces the DC to authenticate, then reflects it to gain DCSync rights.
medium.com
Published on medium.com
I was learning and reading about NTLM reflection and came upon a goldmine blog https://decoder.cloud/2025/11/24/reflecting-your-authentication-when-windows-ends-up-talking-to-itself/.
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 NTLM authentication can be relayed to LDAP because protections like the Message Integrity Code are not properly enforced or can be partially bypassed.
Impact
An attacker with any domain user account could take over the entire Active Directory domain, even with signing enabled, by gaining DCSync rights and extracting domain admin hashes.
What the attacker needed
Unpatched Windows Server; Domain user account; Ability to create DNS records; Network access to DC
The fix
The vulnerability was fixed in Windows Server 2025 (CVE-2025-54918) and unintentionally in Windows Server 2022 (CVE-2025-33073).
How it was found
- Create a DNS record pointing to the attacker's machine using a NetBIOS name or localhost followed by a CMTI suffix.
- Set up ntlmrelayx to reflect authentication to the domain controller.
- Coerce the domain controller to authenticate to the attacker using a coercion technique.
- Verify success by running secretsdump to DCSync the domain and obtain the Domain Admin hash.
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.
When a computer proves who it is using NTLM, that proof can sometimes be forwarded to another service. Here, a normal user tricks the domain controller into proving its identity to the attacker, who forwards that proof back to the domain controller's LDAP service. Because of a bug, the domain controller accepts it and grants high privileges, letting the attacker steal all password hashes.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.