Netlogon Elevation of Privilege (Zerologon, CVE-2020-1472)
A flaw in the Netlogon protocol's cryptography lets an unauthenticated attacker with network access to a domain controller take over its account and the domain.
| Severity | Critical |
| CVSS 3.1 | 10 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H Open in the calculator |
| CVSS 4.0 | 10 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H Open in the calculator |
| CWE | CWE-1204: Generation of Weak Initialization Vector (IV) |
| MITRE ATT&CK | T1210 Exploitation of Remote Services, T1068 Exploitation for Privilege Escalation, T1003.006 DCSync |
| CVE | CVE-2020-1472 |
| Category | Outdated Components |
Description
Zerologon (CVE-2020-1472) is a flaw in the Netlogon Remote Protocol (MS-NRPC), which domain-joined computers use to set up a secure channel with a domain controller. The protocol computes its authentication credentials with AES in CFB8 mode and an initialisation vector fixed at zero. For about one in every 256 session keys, a client challenge and credential made entirely of zeros is then accepted, so an unauthenticated attacker with network access to a domain controller can authenticate as any computer account, including the domain controller's own, by repeating the attempt, on average about 256 times, without knowing its password.
On a vulnerable domain controller the attacker can then turn off signing and sealing for the channel and call NetrServerPasswordSet2 to change the account's password, for example to an empty one. With the domain controller's computer account taken over, the attacker can replicate every password hash in the domain with DCSync, gaining complete control of the domain within minutes using public tools. Exploitation in its usual form resets the domain controller's account password in the directory, which breaks its replication and secure channels until it is restored and can disrupt authentication and replication across the domain. The flaw has been widely exploited by criminal and state-sponsored groups, and CISA issued an emergency directive requiring United States federal agencies to patch it.
Microsoft addressed the flaw in two phases: the August 2020 security updates added the protection, and the February 2021 updates enforced secure RPC for all Netlogon connections unless an account is explicitly allowed by the policy Domain controller: Allow vulnerable Netlogon secure channel connections. A domain controller without the August 2020 update is vulnerable, and accounts listed in that policy remain exposed.
The weakness is identified with a non-destructive check, such as the test script published by Secura, which discovered the flaw, or the equivalent NetExec module, which attempts the zero-credential authentication without changing any password. Because of the password change, full exploitation is not performed on production systems.
Remediation
- Install the latest cumulative security update on every domain controller, including read-only domain controllers. Any update released since February 2021 includes the enforcement phase.
- Check that the policy Domain controller: Allow vulnerable Netlogon secure channel connections is not configured, or lists only devices that cannot yet use secure RPC, each with a documented plan for its removal.
- Monitor the System event log on domain controllers for Netlogon events 5827 and 5828, which record denied vulnerable connections, and 5829 to 5831, which record vulnerable connections that were allowed. They identify non-compliant devices and possible exploitation attempts.
- Upgrade or replace third-party devices and operating systems that cannot use secure RPC for Netlogon.
- Where exploitation may already have occurred, review when the domain controllers' computer account passwords last changed and check replication health; if exploitation is confirmed, treat the domain as compromised.
Confirm the fix by repeating the non-destructive check against every domain controller, which should report that the zero-credential authentication is rejected.
References
Add This Finding to Your Library
In Pental this write-up is in Settings, Library. Add to my library copies it into your own, rated in your firm's CVSS version, ready to put in your own words.
Free trialYour trial starts when your portal goes live, not when you sign up, so the time you spend setting up does not count. · No card required
Only need the reporting? Our reporting tool is free and open source, with the same library.