Gallery < 2.0.3 IP Spoofing

medium Nessus Plugin ID 21017
New! Plugin Severity Now Using CVSS v3

The calculated severity for Plugins has been updated to use CVSS v3 by default. Plugins that do not have a CVSS v3 score will fall back to CVSS v2 for calculating severity. Severity display preferences can be toggled in the settings dropdown.

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.24

Type: remote

Family: CGI abuses

Published: 3/6/2006

Updated: 1/19/2021

Dependencies: gallery_detect.nasl

Risk Information

VPR

Risk Factor: Medium

Score: 5

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

Temporal Vector: CVSS2#E:U/RL:ND/RC:C

Vulnerability Information

CPE: cpe:2.3: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-1128, CVE-2006-1127

BID: 16940