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.
Readme
# CVE-2020-1472
Checker & Exploit Code for CVE-2020-1472 aka Zerologon

Tests whether a domain controller is vulnerable to the Zerologon attack, if vulnerable, it will resets the Domain Controller's account password to an empty string.

NOTE: It will likely break things in production environments (eg. DNS functionality, communication with replication Domain Controllers, etc); target clients will then not be able to authenticate to the domain anymore, and they can only be re-synchronized through manual action.

Zerologon original research and whitepaper by Secura (Tom Tervoort) - https://www.secura.com/blog/zero-logon




https://user-images.githubusercontent.com/104816473/235369201-16c1eabd-4706-4589-bd31-de13fc414f86.mp4




# Exploit

It will attempt to perform the Netlogon authentication bypass. When a domain controller is patched, the detection script will give up after sending 2000 pairs of RPC calls, concluding that the target is not vulnerable (with a false negative chance of 0.04%).

The exploit will be successful only if the Domain Controller uses the password stored in Active Directory to validate the login attempt, rather than the one stored locally as, when changing a password in this way, it is only changed in the AD. The targeted system itself will still locally store its original password.

# Installation
## 1. Installtion as follows:
    1. git clone https://github.com/SecureAuthCorp/impacket
    2. cd impacket
    3. pwd ~/impacket/
    4. virtualenv --python=python3 impacket
    5. source impacket/bin/activate
    6. pip install --upgrade pip
    7. pip install
  
## 2. Install the Zerologon exploit script as follows:

    ~/impacket/
    cd examples
    git clone https://github.com/Akash7350/CVE-2020-1472/tree/main
    cd CVE-2020-1472
    pip install -r requirements.txt
# Example 
![image](https://user-images.githubusercontent.com/104816473/235366431-8f56bcfe-1516-4957-9f30-bb53c1de2300.png)
![image](https://user-images.githubusercontent.com/104816473/235366538-677baf7c-9acf-46c4-a5b0-b532c08dd800.png)
![image](https://user-images.githubusercontent.com/104816473/235366584-fd2b2ff9-80b7-4063-a637-d831883c2239.png)

# Research and Documentation 
https://www.secura.com/whitepapers/zerologon-whitepaper
https://github.com/Akash7350/CVE-2020-1472/blob/main/Report%20CVE%20CVE-2020-1472.pdf

File Snapshot

[4.0K] /data/pocs/4579b52d8142bb6fe0c630918096632e94839238 ├── [2.3K] README.md ├── [159K] Report CVE CVE-2020-1472.pdf └── [3.1K] zerologon.py 0 directories, 3 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 →