Rapid7 Vulnerability & Exploit Database

MS09-053 Microsoft IIS FTP Server NLST Response Overflow

Back to Search

MS09-053 Microsoft IIS FTP Server NLST Response Overflow



This module exploits a stack buffer overflow flaw in the Microsoft IIS FTP service. The flaw is triggered when a special NLST argument is passed while the session has changed into a long directory path. For this exploit to work, the FTP server must be configured to allow write access to the file system (either anonymously or in conjunction with a real account)


  • Kingcope <kcope2@googlemail.com>
  • hdm <x@hdm.io>




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/ms09_053_ftpd_nlst
msf exploit(ms09_053_ftpd_nlst) > show targets
msf exploit(ms09_053_ftpd_nlst) > set TARGET < target-id >
msf exploit(ms09_053_ftpd_nlst) > show options
    ...show and set options...
msf exploit(ms09_053_ftpd_nlst) > 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