Gallery 1.4/1.4 Pl1 URL index.php GALLERY_BASEDIR code injection

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
6.6$0-$5k0.00

Summaryinfo

A vulnerability was found in Gallery 1.4/1.4 Pl1. It has been classified as critical. The affected element is an unknown function of the file index.php of the component URL Handler. Performing a manipulation of the argument GALLERY_BASEDIR results in code injection. This vulnerability is cataloged as CVE-2003-1227. Furthermore, there is an exploit available. Upgrading the affected component is recommended.

Detailsinfo

A vulnerability classified as critical has been found in Gallery 1.4/1.4 Pl1 (Photo Gallery Software). This affects an unknown code block of the file index.php of the component URL Handler. The manipulation of the argument GALLERY_BASEDIR with an unknown input leads to a code injection vulnerability. CWE is classifying the issue as CWE-94. The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. This is going to have an impact on confidentiality, integrity, and availability. The summary by CVE is:

PHP remote file include vulnerability in index.php for Gallery 1.4 and 1.4-pl1, when running on Windows or in Configuration mode on Unix, allows remote attackers to inject arbitrary PHP code via a URL in the GALLERY_BASEDIR parameter, a different vulnerability than CVE-2002-1412. NOTE: this issue might be exploitable only during installation, or if the administrator has not run a security script after installation.

The weakness was shared 12/31/2003 (Website). It is possible to read the advisory at securityfocus.com. This vulnerability is uniquely identified as CVE-2003-1227 since 08/16/2005. The exploitability is told to be easy. It is possible to initiate the attack remotely. No form of authentication is needed for exploitation. Technical details and a public exploit are known. The attack technique deployed by this issue is T1059 according to MITRE ATT&CK.

The exploit is shared for download at exploit-db.com. It is declared as proof-of-concept. By approaching the search of inurl:index.php it is possible to find vulnerable targets with Google Hacking. The vulnerability scanner Nessus provides a plugin with the ID 11876 (Gallery index.php GALLERY_BASEDIR Parameter Remote File Inclusion), which helps to determine the existence of the flaw in a target environment. It is assigned to the family CGI abuses and running in the context r. The commercial vulnerability scanner Qualys is able to test this issue with plugin 11429 (Gallery Index.php Remote File Include Vulnerability).

Upgrading eliminates this vulnerability. A possible mitigation has been published even before and not after the disclosure of the vulnerability. Attack attempts may be identified with Snort ID 2306.

The vulnerability is also documented in the databases at X-Force (13419), Exploit-DB (23238), Tenable (11876), SecurityFocus (BID 8814†) and Vulnerability Center (SBV-2682†). Be aware that VulDB is the high quality source for vulnerability data.

Productinfo

Type

Name

Version

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 7.3
VulDB Meta Temp Score: 6.6

VulDB Base Score: 7.3
VulDB Temp Score: 6.6
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Code injection
CWE: CWE-94 / CWE-74 / CWE-707
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Access: Public
Status: Proof-of-Concept
Download: 🔍
Google Hack: 🔍

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 11876
Nessus Name: Gallery index.php GALLERY_BASEDIR Parameter Remote File Inclusion
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Exploit-DB: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍
Snort ID: 2306
Snort Message: SERVER-WEBAPP gallery remote file include attempt
Snort Class: 🔍
SourceFire IPS: 🔍

Timelineinfo

10/11/2003 🔍
10/11/2003 +0 days 🔍
10/11/2003 +0 days 🔍
10/12/2003 +1 days 🔍
10/26/2003 +14 days 🔍
12/31/2003 +66 days 🔍
12/31/2003 +0 days 🔍
08/16/2005 +594 days 🔍
08/22/2014 +3293 days 🔍
07/16/2025 +3981 days 🔍

Sourcesinfo

Advisory: securityfocus.com
Status: Confirmed

CVE: CVE-2003-1227 (🔍)
GCVE (CVE): GCVE-0-2003-1227
GCVE (VulDB): GCVE-100-21159
X-Force: 13419
SecurityFocus: 8814 - Gallery index.php Remote File Include Vulnerability
Vulnerability Center: 2682 - File Include in Gallery 1.4 Allows Code Execution, Medium

scip Labs: https://www.scip.ch/en/?labs.20161013

Entryinfo

Created: 08/22/2014 15:59
Updated: 07/16/2025 17:57
Changes: 08/22/2014 15:59 (70), 05/16/2019 11:09 (2), 01/01/2025 18:51 (27), 07/16/2025 17:57 (2)
Complete: 🔍
Cache ID: 216::103

Be aware that VulDB is the high quality source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Might our Artificial Intelligence support you?

Check our Alexa App!