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.


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


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.


Upgrade to Gallery 2.0.3 or later.

See Also

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


Risk Factor: Medium

Score: 5


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