Gallery save_photos.php Arbitrary Command Execution

high Nessus Plugin ID 14338

Synopsis

The remote web server hosts a PHP application that is affected by a remote command execution vulnerability.

Description

The version of Gallery hosted on the remote web server is affected by an arbitrary command execution vulnerability. This could allow an attacker to execute arbitrary commands on the remote host by uploading a file containing arbitrary PHP code. When the temp directory is web accessible, the attacker has a 30 second window to access the script and execute the remote code before the file is deleted.

Note that in order to exploit this flaw, an attacker would require the privileges to upload files to a remote photo album.

Solution

Upgrade to Gallery 1.4.4-pl1 or later.

See Also

https://seclists.org/fulldisclosure/2004/Aug/803

https://seclists.org/fulldisclosure/2004/Aug/960

http://galleryproject.org/node/134

Plugin Details

Severity: High

ID: 14338

File Name: gallery_script_exec.nasl

Version: 1.24

Type: remote

Family: CGI abuses

Published: 8/22/2004

Updated: 4/7/2022

Configuration: Enable paranoid mode, Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.6

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 7.1

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

Vulnerability Information

CPE: cpe:/a:gallery_project:gallery

Required KB Items: www/PHP, Settings/ParanoidReport, www/gallery

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 8/21/2004

Vulnerability Publication Date: 8/19/2004

Reference Information

CVE: CVE-2004-1466

BID: 10968