Gallery index.php GALLERY_BASEDIR Parameter Remote File Inclusion

high Nessus Plugin ID 11876

Language:

Synopsis

The remote web server is running a PHP application that is affected by a remote file inclusion vulnerability.

Description

The version of Gallery hosted on the remote web server is affected by a remote file inclusion vulnerability due to the application failing to properly sanitize user-supplied input to the 'GALLERY_BASEDIR' parameter of the 'index.php' script. An attacker may use this flaw to inject arbitrary code in the remote host and gain a shell with the privileges of the web server user.

Solution

Upgrade to Gallery 1.4-pl2 or 1.4.1 or later.

See Also

http://galleryproject.org/node/93

Plugin Details

Severity: High

ID: 11876

File Name: gallery_injection2.nasl

Version: 1.31

Type: remote

Family: CGI abuses

Published: 10/11/2003

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.2

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

CVSS Score Source: CVE-2003-1227

CVSS v3

Risk Factor: High

Base Score: 8.3

Temporal Score: 7.7

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L

Temporal Vector: CVSS:3.0/E:F/RL:O/RC:X

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/12/2003

Vulnerability Publication Date: 10/13/2003

Reference Information

CVE: CVE-2003-1227

BID: 8814

CWE: 94