Coppermine Photo Gallery include/functions.inc.php _data Cookie lang Parameter Traversal Local File Inclusion

medium Nessus Plugin ID 33789

Synopsis

The remote web server contains a PHP application that is affected by a local file include vulnerability.

Description

The version of Coppermine installed on the remote host fails to sanitize input to the 'lang' array element of its data cookie before using it in 'include/init.inc.php' to include PHP code. Provided the application's character set is set to 'utf-8', which it is by default, an unauthenticated, remote attacker can exploit this issue to view arbitrary files or possibly to execute arbitrary PHP code on the remote host, subject to the privileges of the web server user id.

Solution

Upgrade to Coppermine Photo Gallery 1.4.19 or later.

See Also

http://forum.coppermine-gallery.net/index.php/topic,54235.0.html

Plugin Details

Severity: Medium

ID: 33789

File Name: coppermine_data_cookie_file_include.nasl

Version: 1.21

Type: remote

Family: CGI abuses

Published: 8/1/2008

Updated: 6/1/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 6.1

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 Available: true

Exploit Ease: Exploits are available

Exploited by Nessus: true

Reference Information

CVE: CVE-2008-3486

BID: 30480

CWE: 22

Secunia: 31295