Digital Security Research Group [DSecRG] Advisory #DSECRG-08-034 Application: Minishowcase Image Gallery Versions Affected: v09b136 Vendor URL: http://minishowcase.frwrd.net Bug: Local File Include Exploits: YES Reported: 14.07.2008 Second report: 22.07.2008 Vendor response: NONE Solution: NONE Date of Public Advisory: 29.07.2008 Authors: Digital Security Research Group [DSecRG] (research [at] dsec [dot] ru) Description *********** Minishowcase Image Gallery has local file include vulnerability in script libraries/general.init.php Vulnerable GET parameters "lang". Successful exploitation requires that "register_globals" is enabled. Code **** ################################################# ... $_dir_file = dirname(dirname(__FILE__)); $_dir_path = dirname($_SERVER["DOCUMENT_ROOT"] . $_SERVER['PHP_SELF']); if ($_dir_file != $_dir_path) { if (!isset($settings['minishowcase_url']) || ($settings['minishowcase_url'] == "")) { die ("
ALERT: if you are including minishowcase with PHP into a website, please set the \$minishowcase_url
variable in the /config/settings.php
file