Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2025-21420_POC — Proof of Concept CVE-2025-21420 (Windows Disk Cleanup Tool EoP) | Kitploit
Tools/GitHubGitHub/moiz-2x/cve-2025-21420_poc
Privilege EscalationVulnerability AnalysisExploitationPenetration TestingBinary Analysis
GitHubmoiz-2x/cve-2025-21420_poc

CVE-2025-21420_POC

Proof of Concept CVE-2025-21420 (Windows Disk Cleanup Tool EoP)

View Repository
5515261 year agoReviewed by Kitploit
Share

Diffing cleanmgr.exe

The new version of cleanmgr.exe includes a call to the SetProcessMitigationPolicy function.

Diffing
Diffing

With MitigationPolicy set to 16, corresponding to ProcessRedirectionTrustPolicy.

PROCESS_MITIGATION_POLICY

Combined with Microsoft's description of CWE-59: Improper Link Resolution Before File Access ('Link Following'), we can infer that cleanmgr.exe has Redirection Guard enabled.

After reading two blog posts by Simon Zuckerbraun and enigma0x3:

  1. From Arbitrary Folder Delete/Move/Rename to SYSTEM EoP
  2. Bypass UAC

The SilentCleanup task may have sufficient privileges to delete the C:/Config.msi folder, as mentioned by Simon Zuckerbraun. We only need to locate an Arbitrary Folder Delete/Move/Rename vulnerability inside the SilentCleanup task (which runs cleanmgr.exe with Run with highest priv) and redirect it to the C:/Config.msi folder.

Observations via Procmon

Run the SilentCleanup task and observe cleanmgr.exe behavior.

Procmon

The process checks whether the listed folders exist (interestingly, it doesn't verify if C:\ESD is a junction, but it does check Windows and Download — which we won’t dive into here).

Create the folders C:\$Windows.~WS, C:\ESD\Windows, C:\ESD\Download, drop some random files into them, rerun SilentCleanup and observe again.

Procmon

We can see SilentCleanup deletes the contents within the Windows and Download folders. This can be leveraged using the technique described in From Folder Contents Delete to SYSTEM EoP.

Exploit

  1. Python script creates 3 folders: C:\$Windows.~WS, C:\ESD\Windows, C:\ESD\Download, inserts dummy .txt files and pauses.
  2. Run FolderOrFileDeleteToSystem to set up the Config.msi.
  3. Run FolderContentsDeleteToFolderDelete to redirect content cleanup from C:\ESD\Windows to C:/Config.msi.
    Note: Exclude these two processes in Defender as AV may detect this exploit technique.
  4. Resume the Python script and run SilentCleanup to trigger content cleanup.
  5. Run osk.exe, then hit Ctrl-Alt-Delete.

https://github.com/user-attachments/assets/d66b43ea-6706-4bce-94c4-ca3a6e97857f

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    851
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    538
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    420
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    357
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    297
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    280

Explore all tools

Browse our collection of tools

View all tools →