GLSA-200402-04 : Gallery 1.4.1 and below remote exploit vulnerability

Medium Nessus Plugin ID 14448


The remote Gentoo host is missing one or more security-related patches.


The remote host is affected by the vulnerability described in GLSA-200402-04 (Gallery 1.4.1 and below remote exploit vulnerability)

Starting in the 1.3.1 release, Gallery includes code to simulate the behaviour of the PHP 'register_globals' variable in environments where that setting is disabled. It is simulated by extracting the values of the various $HTTP_ global variables into the global namespace.
Impact :

A crafted URL such as causes the 'register_globals' simulation code to overwrite the $HTTP_POST_VARS which, when it is extracted, will deliver the given payload. If the payload compromises $GALLERY_BASEDIR then the malicious user can perform a PHP injection exploit and gain remote access to the webserver with PHP user UID access rights.
Workaround :

The workaround for the vulnerability is to replace init.php and setup/init.php with the files in the following ZIP file:


All users are encouraged to upgrade their gallery installation:
# emerge sync # emerge -p '>=www-apps/gallery-1.4.1_p1' # emerge '>=www-apps/gallery-1.4.1_p1'

See Also

Plugin Details

Severity: Medium

ID: 14448

File Name: gentoo_GLSA-200402-04.nasl

Version: $Revision: 1.10 $

Type: local

Published: 2004/08/30

Modified: 2015/04/13

Dependencies: 12634

Risk Information

Risk Factor: Medium

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:gallery, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Patch Publication Date: 2004/02/11

Reference Information

GLSA: 200402-04