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
Test script for CVE-2020-1472 for both RPC/TCP and RPC/SMB
Readme
# Zerologon test for SMB & RPC
A python script based on [SecuraBV script](https://github.com/SecuraBV/CVE-2020-1472).
Demonstrates that CVE-2020-1472 can be done via RPC/SMB, and not only over RPC/TCP.
Additionaly, there is a random byte in the final client challange & client credential - to test against trivial IDS signatures.
The RPC/SMB scan runs by default. Depending on the target server, some may require a valid authenticated user to get permission to the netlogon pipe.
# Execution
```python
usage: zerologon_test.py [-h] [-u] [-d] [-p] [-t] [-pp] dc_name dc_ip
Perform zerologon test over RPC/TCP or RPC/SMB
positional arguments:
dc_name NetBIOS name of the domain controller
dc_ip ip address of the domain controller
optional arguments:
-h, --help, /?, /h, /help
show this help message and exit
-u , --user authenticated domain user,may be required for SMB
-d , --domain domain name, required only when authentication over SMB
-p , --pass authenticated domain user's password, may be required for SMB
-t , --type rpc or smb scan. choices: [smb, rpc], (default: 'smb').
-pp, --privacy if exists adds packet privacy
```
File Snapshot
[4.0K] /data/pocs/cb161ddc3f84428f4dd589e4caa35f790d94468a
├── [1.0K] LICENSE
├── [1.2K] README.md
├── [ 289] requirements.txt
└── [4.9K] zerologon.py
0 directories, 4 files
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 →