Gallery < 2.0.3 IP Spoofing

medium Nessus Plugin ID 21017

Synopsis

The remote web server contains a PHP application that is affected by an IP spoofing issue.

Description

The version of Gallery hosted on the remote web server allows an attacker to spoof the IP address with a bogus 'X_FORWARDED_FOR' HTTP header.

In addition, an authenticated attacker can reportedly leverage this flaw to launch cross-site scripting attacks by adding comments to a photo. The application also reportedly fails to validate a session id before using it, which can be used to delete arbitrary files on the remote host subject to the privileges of the web server user id;
however, Nessus has not tested for these additional issues.

Solution

Upgrade to Gallery 2.0.3 or later.

See Also

http://www.nessus.org/u?3548c5a5

https://www.securityfocus.com/archive/1/426655/30/0/threaded

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

Plugin Details

Severity: Medium

ID: 21017

File Name: gallery_203.nasl

Version: 1.25

Type: remote

Family: CGI abuses

Published: 3/6/2006

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: 6.4

Temporal Score: 5.4

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

Patch Publication Date: 3/2/2006

Vulnerability Publication Date: 3/3/2006

Reference Information

CVE: CVE-2006-1126, CVE-2006-1127, CVE-2006-1128

BID: 16940