
Python PoC for Webmin 1.580 Remote Command Execution (CVE-2012-2982)
This repository contains a Python proof-of-concept (PoC) exploit for Webmin version 1.580, which is vulnerable to Remote Command Execution (RCE) due to improper input sanitization. The vulnerability exists in the file/show.cgi component and allows an authenticated Webmin user with access to the File Manager module to execute arbitrary OS commands as root.
This PoC was developed for educational and research purposes and tested in a controlled lab environment (TryHackMe).
⚠️ This project is intended strictly for educational purposes and authorized security testing only.
file/show.cgi component of Webmin 1.580|) character are not sanitizedIn this PoC:
show.cgi# Usage:
# python3 webmin.py <target> -u <username> -p <password> -c "<command>"
# Example:
python3 webmin.py https://10.10.10.10:10000 -u admin -p admin123 -c "id"