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-2012-2982-Webmin-Exploit — PoC exploit for CVE-2012-2982 (Webmin RCE), for educational purposes. | Kitploit
Tools/GitHubGitHub/sieger05/cve-2012-2982-webmin-exploit
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & Education
GitHubsieger05/cve-2012-2982-webmin-exploit

CVE-2012-2982-Webmin-Exploit

PoC exploit for CVE-2012-2982 (Webmin RCE), for educational purposes.

View Repository
251 year agoNot yet reviewed
Share

Webmin 1.590 Remote Command Execution Exploit (CVE-2012-2982)

Overview

This repository contains a Proof-of-Concept (PoC) exploit for CVE-2012-2982, a remote authenticated command execution vulnerability affecting Webmin versions 1.590 and earlier. The vulnerability resides in the /file/show.cgi endpoint, where an attacker can execute arbitrary commands by injecting special characters (such as the | pipe symbol) in a manipulated request.

This PoC is intended for educational and security research purposes only. Unauthorized exploitation of systems without permission is illegal and unethical.

CVE-2012-2982 Details

Description

Webmin is a popular web-based system administration tool for managing Unix-based systems. In versions 1.590 and earlier, a security flaw exists in the File Manager module. The issue arises from improper sanitization of user input when interacting with the /file/show.cgi script. By injecting shell metacharacters (|), an authenticated user can execute arbitrary commands on the target system with the privileges of the Webmin process (often root).

Impact

  • Affected versions: Webmin 1.590 and earlier

  • Attack prerequisites:

    • Attacker must have valid Webmin credentials (low-privileged user account is enough).

    • The File Manager module must be accessible.

  • Exploitation allows:

    • Remote code execution (RCE)

    • Privilege escalation (if Webmin is running as root)

    • System compromise

Vulnerable Endpoint

The vulnerable endpoint is:

http://<target_ip>:10000/file/show.cgi

The attack exploits improper input validation when passing a file path, allowing execution of injected shell commands via |.

PoC Exploit

This repository contains a Python exploit script that automates:

  1. Authentication: Logs into Webmin using provided credentials.

  2. Session ID Extraction: Retrieves the session ID required for authenticated requests.

  3. Payload Execution: Sends a malicious request to execute arbitrary commands.

Features

  • Randomized Execution Path: Uses a randomly generated filename to evade detection.

  • Reverse Shell Support: Generates a reverse shell payload to connect back to the attacker's machine.

  • Error Handling: Handles request failures gracefully.

  • Modular Design: Easy to modify for testing different payloads.

Installation & Usage

Prerequisites

  • Python 3

  • requests library (pip install requests)

  • A Webmin instance (vulnerable version) for testing (use a controlled lab environment)

Running the Exploit

Usage:

python3 exploit.py <target_IP>

Example:

python3 exploit.py 192.168.1.100

Default Configuration (Modify as Needed)

  • Attacker IP (**lhost**): 10.21.48.124

  • Attacker Port (**lport**): 1937

  • Target Webmin Credentials:

    • Username: user1

    • Password: 1user

If successful, the exploit establishes a reverse shell connection to the attacker's machine.

Setting Up Netcat Listener on the Attack Machine

Before running the exploit, set up a Netcat listener on your attack machine to receive the reverse shell:

nc -lvnp 1937

Once the exploit executes successfully, you should receive a shell connection from the target machine.

Educational Purpose Only

This PoC is strictly for security research and educational purposes. It should only be used in authorized penetration testing environments. Unauthorized use against production systems is a violation of cybersecurity laws and may result in legal consequences.

References

  • Official CVE Entry

  • Metasploit Module

  • American InfoSec Advisory

Disclaimer

The author are not responsible for any misuse of this exploit. Use this PoC only for legal security testing and ethical hacking activities.

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.

    985
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    571
  • 3

    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.

    354
  • 4

    redforge

    cybersecurity91/redforge

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

    341
  • 5

    ARTEX

    baarai/artex

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

    324
  • 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.

    309

Explore all tools

Browse our collection of tools

View all tools →