Gallery upgrade/index.php and install/index.php file include
| gallery-multiple-index-file-include (25129) |
Description:
Gallery could allow a remote attacker to include malicious PHP files. If magic_quotes_gpc is set to 'off' and register_globals is set to 'on', a remote attacker could send a specially-crafted URL request to the upgrade/index.php script or the install/index.php script using the 'stepOrder[]' parameter to specify a malicious PHP file from a remote system, which would allow the attacker to execute arbitrary code on the vulnerable system.
Note: This file include vulnerability can be further exploited to include PHP files in the g2data/plugins_data/modules/watermark directory.
Consequences:
Gain Access
Remedy:
Upgrade to the latest version of Gallery (2.0.4 or later), available from the Gallery Web site. See References.
References:
- Gallery Web site: Gallery - Your Photos on Your Website.
- BID-17051: Gallery Multiple Local File Include Vulnerabilities
- CVE-2006-1219: Directory traversal vulnerability in Gallery 2.0.3 and earlier, and 2.1 before RC-2a, allows remote attackers to include arbitrary PHP files via .. (dot dot) sequences in the stepOrder parameter to (1) upgrade/index.php or (2) install/index.php.
- SA19175: Gallery "stepOrder[]" Local File Inclusion Vulnerability
- VUPEN/ADV-2006-0895: Gallery stepOrder Variable Local File Inclusion and Code Injection Issues
Platforms Affected:
- Gallery Gallery 2.0.3 and prior
Reported:
Mar 09, 2006
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
For corrections or additions please email xforce@iss.net
