Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2012-2982 PoC — Webmin ‘file/show.cgi’任意命令执行漏洞

Source
Associated Vulnerability
Title:Webmin ‘file/show.cgi’任意命令执行漏洞 (CVE-2012-2982)
Description:file/show.cgi in Webmin 1.590 and earlier allows remote authenticated users to execute arbitrary commands via an invalid character in a pathname, as demonstrated by a | (pipe) character.
Description
Python exploit for CVE-2012-2982
Readme
# CVE-2012-2982
This python script is written for vulnerability in Webmin 1.580, CVE-2012-2982. The vulnerability exists in the /file/show.cgi component and allows an authenticated user, with access to the File Manager Module, to execute arbitrary commands with root privileges.

## Installation
Tested python version: Python 3.8.5

Required pip package: secrets

`git clone https://github.com/OstojaOfficial/CVE-2012-2982.git`

`pip3 install -r requirements.txt`

## Usage
To run the exploit use the command bellow:

`python3 exploit.py <IP> <Username> <Password> <LHOST> <LPORT>`
File Snapshot

[4.0K] /data/pocs/2ea64c1b8a40a54de51d70ea6c27505ca960d790 ├── [1.6K] exploit.py ├── [ 582] README.md └── [ 14] requirements.txt 0 directories, 3 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →