Original inc/exif.inc.php exif_prog Parameter Arbitrary Command Execution

medium Nessus Plugin ID 26199

Synopsis

The remote web server contains a PHP script that allows arbitrary command execution.

Description

Original photo gallery, a PHP-based photo gallery, is installed on the remote host.

The version of Original photo gallery on the remote host fails to sanitize input to the 'exif_prog' parameter of the 'inc/exif.inc.php' script before using it in an 'exec()' statement to execute a command. Provided PHP's 'register_globals' setting is enabled, an unauthenticated attacker can leverage this issue to execute arbitrary code on the remote host subject to the privileges of the web server user id.

Solution

Upgrade to Original photo gallery 0.11.3 or later.

See Also

https://www.securityfocus.com/archive/1/481316/30/0/threaded

Plugin Details

Severity: Medium

ID: 26199

File Name: original_exif_prog_cmd_exec.nasl

Version: 1.17

Type: remote

Family: CGI abuses

Published: 10/3/2007

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.3

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5

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

Vulnerability Information

Required KB Items: www/PHP

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Ease: No exploit is required

Exploited by Nessus: true

Reference Information

CVE: CVE-2007-5224

BID: 25896

CWE: 94