Gallery stepOrder Parameter Local File Inclusion

medium Nessus Plugin ID 21040

Synopsis

The remote web server contains a PHP application that is affected by multiple local file include flaws.

Description

The version of Gallery hosted on the remote web server fails to sanitize input to the 'stepOrder' parameter of the 'upgrade/index.php' and 'install/index.php' scripts before using it in a PHP 'require()' function. An unauthenticated attacker may be able to exploit this issue to view arbitrary files or to execute arbitrary PHP code on the affected host provided the PHP's 'register_globals' setting is enabled.

Note that Nessus has only tested the 'upgrade/index.php' script to confirm this issue.

Solution

Disable PHP's 'register_globals' setting, delete the application's 'upgrade/index.php' or 'install/index.php' scripts, or upgrade to Gallery version 2.0.4 / 2.1-RC-2a or later.

See Also

http://www.nessus.org/u?6ec7edf1

http://galleryproject.org/2.0.4_and_2.1_rc_2a_update

Plugin Details

Severity: Medium

ID: 21040

File Name: gallery_steporder_file_includes.nasl

Version: 1.21

Type: remote

Family: CGI abuses

Published: 3/10/2006

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.2

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 4.3

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:P/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: Exploits are available

Exploited by Nessus: true

Patch Publication Date: 3/8/2006

Vulnerability Publication Date: 3/8/2006

Reference Information

CVE: CVE-2006-1219

BID: 17051