Skip to content
Access control Write-up Advanced

Use Zerologon Cve 2020 1417 When The Domain Controller Is In An Isolated Network

The article shows how to exploit the Zerologon flaw (CVE-2020-1472) against a domain controller that is not directly reachable from the attacker's machine, by using a compromised Windows 10 workstation as a relay. An attacker who already has a foothold on that workstation could tunnel the required ports and then reset the domain controller computer account password, dump domain hashes and log in as Domain Administrator.

Nol White Hat Follow

Published on systemweakness.com

Zerologon exploits an insecure implementation of encryption (AES-CFB8) in the Netlogon Remote Protocol. This protocol is used to help identify and authenticate users and client computers before they are granted access to the network.

Nol White Hat, on systemweakness.com

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

The text states the flaw is an insecure implementation of AES-CFB8 encryption in the Netlogon Remote Protocol, which lets an attacker authenticate as the domain controller computer account.

Impact

An attacker with a foothold on an internal workstation could take over the domain controller and obtain Domain Administrator access, though the text notes the password reset leaves the domain in an unstable state until the original hash is restored.

What the attacker needed

Foothold on an internal Windows host; SSH access on the attacker machine; domain controller reachable from that host

The fix

The text does not describe a fix; it only notes that the original computer account password hash was restored after exploitation.

How it was found

  1. From the compromised Windows 10 shell, find the primary domain controller name and confirm it responds to ping.
  2. From the Kali machine, confirm the domain controller is not directly reachable.
  3. Download plink.exe to the Windows 10 host and serve it from a temporary HTTP server on Kali.
  4. Use plink to reverse-forward port 445 from the domain controller to Kali and verify the mapping.
  5. Scan the domain controller's dynamic port range from the Windows 10 host with a PowerShell port scanner.
  6. Reverse-forward all required static and dynamic ports with plink, then run the Zerologon tester and exploit scripts, dump hashes, restore the original machine account password and log in as Domain Administrator.

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.

A domain controller is the server that checks who is allowed to log in to a Windows network. Zerologon is a flaw in how that server proves a computer's identity, and it lets someone trick it into accepting a wrong password. This write-up is about reaching that server when it sits on a network the attacker cannot touch directly, by bouncing the traffic through a machine the attacker already controls.

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.

More by Nol White Hat

View all

8 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.