Vulnerability Assessment & Network Security Forums



If through a vulnerability assessment, a network security issue is detected for the vulnerability below, applying the appropriate security patches in a timely matter is very important.  If you have detected that your system has already been compromised, following CERT's Network Security recovery document will assist with recommended steps for system recovery.


Home >> Browse Vulnerability Assessment Database >> Gentoo Local Security Checks >> [GLSA-200409-05] Gallery: Arbitrary command execution


Vulnerability Assessment Details

[GLSA-200409-05] Gallery: Arbitrary command execution

Vulnerability Assessment Summary
Gallery: Arbitrary command execution

Detailed Explanation for this Vulnerability Assessment
The remote host is affected by the vulnerability described in GLSA-200409-05
(Gallery: Arbitrary command execution)


The upload handling code in Gallery places uploaded files in a temporary
directory. After 30 seconds, these files are deleted if they are not valid
images. However, since the file exists for 30 seconds, a carefully crafted
script could be initiated by the remote attacker during this 30 second
timeout. Note that the temporary directory has to be located inside the
webroot and a possible hacker needs to have upload rights either as an
authenticated user or via "EVERYBODY".

Impact

A possible hacker could run arbitrary code as the user running PHP.

Workaround

There are several workarounds to this vulnerability:
Make sure that your temporary directory is not contained in the
webroot
by default it is located outside the webroot.
Disable upload rights to all albums for "EVERYBODY"
upload
is disabled by default.
Disable debug and dev mode
these settings are disabled by
default.
Disable permit_url_fopen in php.ini.

References:
http://archives.neohapsis.com/archives/fulldisclosure/2004-08/0757.html
http://gallery.menalto.com/modules.php?op=modload&name=News&file=article&sid=134&mode=thread&order=0&thold=0


Solution:
All Gallery users should upgrade to the latest version:
# emerge sync
# emerge -pv ">=www-apps/gallery-1.4.4_p2"
# emerge ">=www-apps/gallery-1.4.4_p2"


Network Security Threat Level: Medium


Networks Security ID:

Vulnerability Assessment Copyright: (C) 2005 Michel Arboi

Cables, Connectors

NRX7Y 0NRXY 2.5" HDD Tray Caddy FOR M620 M420 M520 M820 Blade Server
$23.24
NRX7Y 0NRXY 2.5Dell PowerEdge R720xd 2x E5-2640 v2 2.0GHz 8 Core 384GB 12x 4TB 7.2K SAS H710P
$6350.0
Dell PowerEdge R720xd 2x E5-2640 v2 2.0GHz 8 Core 384GB 12x 4TB 7.2K SAS H710P pictureDell PowerEdge R420 2x E5-2470 2.3GHz 8-Core 192GB 4x 600GB 15K SAS PERC H310
$3345.0
Dell PowerEdge R420 2x E5-2470 2.3GHz 8-Core 192GB 4x 600GB 15K SAS PERC H310 pictureDell PowerEdge R710 2x X5680 3.33GHz 6 Core 64GB 8x 128GB SATA SSD PERC 6/i
$1305.0
Dell PowerEdge R710 2x X5680 3.33GHz 6 Core 64GB 8x 128GB SATA SSD PERC 6/i picture


Discussions

No Discussions have been posted on this vulnerability.