Gallery main.php g2_itemId Parameter Traversal Arbitrary File Access

medium Nessus Plugin ID 20015

Synopsis

The remote web server contains a PHP script that is affected by a directory traversal flaw.

Description

The version of Gallery hosted on the remote web server fails to sanitize user-supplied input to the 'g2_itemId' parameter of the 'main.php' script before using it to read cached files. If PHP's 'display_errors' setting is enabled, an attacker can exploit this flaw to read arbitrary files on the remote host, subject to the privileges of the web server user id.

Solution

Upgrade to Gallery 2.0.1 or later.

See Also

http://dipper.info/security/20051012

https://www.securityfocus.com/archive/1/413405

http://galleryproject.org/gallery_2.0.1_released

Plugin Details

Severity: Medium

ID: 20015

File Name: gallery_g2_itemid_dir_traversal.nasl

Version: 1.23

Type: remote

Family: CGI abuses

Published: 10/18/2005

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.0

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 4.4

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N

Vulnerability Information

CPE: cpe:/a:gallery_project:gallery

Required KB Items: www/PHP, www/gallery

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Available: true

Exploit Ease: No exploit is required

Patch Publication Date: 10/14/2005

Vulnerability Publication Date: 10/14/2005

Reference Information

CVE: CVE-2005-3251

BID: 15108