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


A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G

$11.99



Lot 2 HyperX Fury 16GB (2 x 8GB) Memory (HX426C16FB3K2/16) picture

Lot 2 HyperX Fury 16GB (2 x 8GB) Memory (HX426C16FB3K2/16)

$23.99



A-Tech 16GB 2 x 8GB PC3-12800 Laptop SODIMM DDR3 1600 Memory RAM PC3L 16G DDR3L picture

A-Tech 16GB 2 x 8GB PC3-12800 Laptop SODIMM DDR3 1600 Memory RAM PC3L 16G DDR3L

$23.98



Team T-FORCE VULCAN Z 16GB (2 x 8GB) DDR4 3200 PC Ram Intel XMP 2.0 Memory picture

Team T-FORCE VULCAN Z 16GB (2 x 8GB) DDR4 3200 PC Ram Intel XMP 2.0 Memory

$33.99



Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3 picture

Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3

$21.95



A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G picture

A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G

$11.99



Hynix 8GB Laptop Memory DDR4-2666MHz picture

Hynix 8GB Laptop Memory DDR4-2666MHz

$9.99



A-Tech 16GB DDR4 2400 MHz PC4-19200 Laptop SODIMM 260-Pin 2Rx8 Memory RAM 1x 16G picture

A-Tech 16GB DDR4 2400 MHz PC4-19200 Laptop SODIMM 260-Pin 2Rx8 Memory RAM 1x 16G

$24.99



CORSAIR VENGEANCE RGB 32GB (2 x 16GB) PC5-48000 (DDR5-6000) DIMM Memory - Black picture

CORSAIR VENGEANCE RGB 32GB (2 x 16GB) PC5-48000 (DDR5-6000) DIMM Memory - Black

$99.95



CORSAIR DOMINATOR TITANIUM 32GB (2 x 16GB) PC5-56000 (DDR5-7000) DIMM RGB White picture

CORSAIR DOMINATOR TITANIUM 32GB (2 x 16GB) PC5-56000 (DDR5-7000) DIMM RGB White

$149.99



Discussions

No Discussions have been posted on this vulnerability.