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


OEM 130W Charger For Dell XPS 15 9530 9550 9560 9570 7590 06TTY6 Power Adapter picture

OEM 130W Charger For Dell XPS 15 9530 9550 9560 9570 7590 06TTY6 Power Adapter

$35.99



NEW OEM USB-C Type-C Charger For Dell XPS 15 2in1 9575 Precision 5530 130W picture

NEW OEM USB-C Type-C Charger For Dell XPS 15 2in1 9575 Precision 5530 130W

$35.99



NEW OEM Dell Inspiron 14 5406  P126G Laptop Battery 11.25V 40Wh JK6Y6  CF5RH picture

NEW OEM Dell Inspiron 14 5406 P126G Laptop Battery 11.25V 40Wh JK6Y6 CF5RH

$37.00



Genuine 45W Power Adapter Charger for Dell DA45NM140 0KXTTW 4.5*3.0mm OEM picture

Genuine 45W Power Adapter Charger for Dell DA45NM140 0KXTTW 4.5*3.0mm OEM

$16.99



Genuine OEM Dell 90W Laptop Charger AC Adapter 19.5V 4.62A 50-60 Hz white tip picture

Genuine OEM Dell 90W Laptop Charger AC Adapter 19.5V 4.62A 50-60 Hz white tip

$8.74



OEM Dell Inspiron 11 13 14 15 17 3000 5000 7000 AC Adapter Charger 65W 4.5mm Tip picture

OEM Dell Inspiron 11 13 14 15 17 3000 5000 7000 AC Adapter Charger 65W 4.5mm Tip

$10.99



OEM 130W USB-C Type-C Charger for Dell XPS 15 9500 9570 9575 17 9700 DA130PM170 picture

OEM 130W USB-C Type-C Charger for Dell XPS 15 9500 9570 9575 17 9700 DA130PM170

$35.88



OEM DELL 65W AC Adapter Charger 7.4mm Latitude 7490 7480 E7440 E7450 E7470 E7270 picture

OEM DELL 65W AC Adapter Charger 7.4mm Latitude 7490 7480 E7440 E7450 E7470 E7270

$11.88



Dell OEM Latitude 12 Rugged 7214 / 7204  Touchscreen LCD Complete Assembly  picture

Dell OEM Latitude 12 Rugged 7214 / 7204  Touchscreen LCD Complete Assembly

$44.99



Genuine OEM 42wh YRDD6 Battery For Dell Inspiron 3493 3582 3583 3584 7586 3793 picture

Genuine OEM 42wh YRDD6 Battery For Dell Inspiron 3493 3582 3583 3584 7586 3793

$32.89



Discussions

No Discussions have been posted on this vulnerability.