2662 : Gallery index.php GALLERY_BASEDIR Variable Arbitrary File Inclusion
Printer | http://osvdb.org/2662 | Email This | Edit Vulnerability

Views This Week

1

Views All Time

27

Info

Last Modified

11 months ago

Percent Complete

75%

Disclosure

Oct 13, 2003

Discovery

Unknown

Dates

Exploit

Unknown

Solution

Unknown

Description

A flaw exists in Gallery 1.4 that allows an attacker to include arbitrary files. This flaw is due to the file gallery/setup/index.php not verifying the GALLERY_BASEDIR variable.

Classification

Location: Remote/Network Access Required
OSVDB: Web Related

Technical

On UNIX installations this flaw only exists while setup mode is enabled. On Windows installs this vulnerability exists all of the time.

Solution

Upgrade to version 1.4-pl2 of Gallery

If an upgrade is not feasible you can either delete the file gallery/setup/index.php after you have setup the software or open gallery/setup/index.php in a text editor and change the following lines:
if (!isset($GALLERY_BASEDIR)) {
$GALLERY_BASEDIR = '../';
}
to this:

$GALLERY_BASEDIR = '../';

Products

Bharat Mediratta
Watch-list
Gallery
Watch-list
1.4
1.4-pl1
1.4.1

References

Tools & Filters

Nessus

11876

Snort

2306

Credit

Unknown or Incomplete

Blogs

None found at this time

Comments

No Comments.

DONATE NOW!

User Status

Quick Searches

Advertisements

The database information may change without any notice. Use of the information constitutes acceptance for use in an AS IS condition, and 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 copyright holder or distributor (OSVDB or OSF) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

© Copyright 2008 Open Source Vulnerability Database (OSVDB), All Rights Reserved.
Privacy Statement - Terms of Use