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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2021-36934 PoC — Windows Elevation of Privilege Vulnerability

Source
Associated Vulnerability
Title:Windows Elevation of Privilege Vulnerability (CVE-2021-36934)
Description:<p>An elevation of privilege vulnerability exists because of overly permissive Access Control Lists (ACLs) on multiple system files, including the Security Accounts Manager (SAM) database. An attacker who successfully exploited this vulnerability could run arbitrary code with SYSTEM privileges. An attacker could then install programs; view, change, or delete data; or create new accounts with full user rights.</p> <p>An attacker must have the ability to execute code on a victim system to exploit this vulnerability.</p> <p>After installing this security update, you <em>must</em> manually delete all shadow copies of system files, including the SAM database, to fully mitigate this vulnerabilty. <strong>Simply installing this security update will not fully mitigate this vulnerability.</strong> See <a href="https://support.microsoft.com/topic/1ceaa637-aaa3-4b58-a48b-baf72a2fa9e7">KB5005357- Delete Volume Shadow Copies</a>.</p>
Description
PoC for CVE-2021-36934 Aka HiveNightmare/SeriousSAM written in python3
Readme
# PyNightmare
PoC for CVE-2021-36934 Aka HiveNightmare/SeriousSAM fully written in python3

# Explanation
CVE-2021-36934 is a recently discovered vulnerability found by @jonasLyk allowing non-admin users to copy all registry hives which contain very private information like hashes which could lead to Privilege Escalation

# Inspiration
Simple Poc for the HiveNightmare vulnerabilty inspired by @GossiTheDog.

# Scope
Works on all versions of Windows 10, where System Protection is enabled.

# What does this PoC do ?
This exploit will look through Volume Shadow Copy to extract SAM and System files

# Picture
![image](https://user-images.githubusercontent.com/59793368/126884371-26ff69ba-253c-4507-a481-7daf436bfeae.png)
File Snapshot

[4.0K] /data/pocs/580347f6e0a45e6df58320916673ace22cd91f7e ├── [ 714] PyNightmare.py └── [ 724] 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 →