Rapid7 Vulnerability & Exploit Database

EasyFTP Server MKD Command Stack Buffer Overflow

Back to Search

EasyFTP Server MKD Command Stack Buffer Overflow



This module exploits a stack-based buffer overflow in EasyFTP Server and earlier. EasyFTP fails to check input size when parsing 'MKD' commands, which leads to a stack based buffer overflow. NOTE: EasyFTP allows anonymous access by default. However, in order to access the 'MKD' command, you must have access to an account that can create directories. After version, this package was renamed "UplusFtp". This exploit utilizes a small piece of code that I\'ve referred to as 'fixRet'. This code allows us to inject of payload of ~500 bytes into a 264 byte buffer by 'fixing' the return address post-exploitation. See references for more information.


  • x90c <geinblues@gmail.com>
  • jduck <jduck@metasploit.com>




Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/windows/ftp/easyftp_mkd_fixret
msf exploit(easyftp_mkd_fixret) > show targets
msf exploit(easyftp_mkd_fixret) > set TARGET < target-id >
msf exploit(easyftp_mkd_fixret) > show options
    ...show and set options...
msf exploit(easyftp_mkd_fixret) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security