Topic: 4Images 1.7.6 Local Inclusion Vulnerability
4Images 1.7.6 Local Inclusion Vulnerability
BY Flyh4t
/***********************************************************/
4images - Image Gallery Management System V1.7.6 Local Inclusion Vulnerability
Author : Flyh4t
msn : flyh4t@hotmail.com
team: Wolves Security Team
site: bbs.wolvez.org
Greet to : q1ur3n puret_t make0day and all the members of Wolves Security Team
/***********************************************************/
Bug file : global.php
if (isset($HTTP_GET_VARS['l']) || isset($HTTP_POST_VARS['l'])) {
$requested_l = (isset($HTTP_GET_VARS['l'])) ? trim($HTTP_GET_VARS['l']) : trim($HTTP_POST_VARS['l']);
if ($requested_l != $config['language_dir'] && file_exists(ROOT_PATH.'lang/'.$requested_l.'/main.php')) {
$l = $requested_l;
$config['language_dir'] = $l;
}
}
include_once(ROOT_PATH.'lang/'.$config['language_dir'].'/main.php');
/***********************************************************/
global.php is included by all the files of 4images,so it can be exploited through many files
/***********************************************************/