
ZeroLogon: Netlogon accepts an all-zero AES session key, enabling domain takeover. Fixed in August 2020 update. Differential: channel established on vuln, refused on fixed
| CVE | CVE-2020-1472 |
| Component | Microsoft Windows — Netlogon secure channel |
| Affected | Windows Server 2008 R2 through 2019 |
| Fixed in | August 2020 security update |
| CWE | CWE-287 (Improper Authentication) |
| Impact | The Netlogon protocol failed to correctly use an AES session key, allowing an attacker to establish a secure channel with a zero session key and change the domain controller computer account password. |
| Vector | crafted Netlogon secure channel setup |
| Trigger | all-zero client challenge / session key |
The vulnerable path:
# pre-fix (model from Microsoft MS-NRPC advisory)
attacker input accepted without the required protection
The derived guard:
# derived from observed behaviour, not copied from a vendor fix
if session key is all zero: reject
The server accepted a session key derived from zeros. The fix validates the key material.
| service | image | role |
|---|---|---|
z72-vuln | cve-2020-1472:vuln | vulnerable behaviour present |
z72-guard | cve-2020-1472:guard | fixed behaviour |
poc | cve-2020-1472-poc:local | stdlib-only Python driver |
Both sides are Python 3.12 images. The vulnerable behaviour is modelled from Microsoft MS-NRPC advisory; the guard is derived from the lab observation that the impact is reproduced. The fixed build applies the published upstream change.
./run-lab.sh build
./run-lab.sh up
./run-lab.sh sweep
./run-lab.sh down
The lab uses the isolated cve1472lab network and bounded containers.
poc/poc.py takes a mode and an optional --host=...:
| mode | result |
|---|---|
check | exit 1 when the channel is accepted, 0 when the key is refused |
exploit | runs the full chain and reports the observed impact |
probe | prints the bypass flag |
mitigation | explains the derived guard |
A standalone exploit ships at exploit/exploit.py:
python3 exploit/exploit.py --host=z72-vuln
It exits 1 on a confirmed finding and 0 on a guarded target.
z72-vuln (pre-fix) | z72-guard (derived) | |
|---|---|---|
| crafted request | domain takeover | refused |
| ordinary request | works | works |
Captured runs are in evidence/check-*-run.txt, evidence/exploit-*-run.txt,
evidence/probe-*-run.txt, evidence/mitigation-*-run.txt,
evidence/exploit-standalone-run.txt,
evidence/exploit-standalone-fixed-run.txt, evidence/versions.txt and
evidence/0day-sweep.txt.
Podman or Docker with the cve1472lab network. No production system is
involved. Real-world exploitation needs an affected installation.
Ordinary requests still succeed on the fixed build.
README.md this write-up
run-lab.sh environment driver (build / up / sweep / down)
Makefile convenience targets
poc/poc.py the PoC (check / exploit / probe / mitigation)
exploit/exploit.py standalone exploit
lab/harness-*.py vulnerable behaviour / derived guard
lab/lab.Dockerfile builds both sides
lab/service.py HTTP wrapper (POST /check)
evidence/ captured runs on both sides
TRACKING.md working record, excluded from the repo