Dragonfly CMS install.php newlang Parameter Local File Inclusion

high Nessus Plugin ID 20869

Synopsis

The remote web server contains a PHP script that is affected by a local file include issue.

Description

The remote host appears to be running Dragonfly / CPG-Nuke CMS, a content management system written in PHP.

The installed version of Dragonfly / CPG-Nuke CMS fails to validate user input to the 'getlang' parameter as well as the 'installlang' cookie before using them in the 'install.php' script in PHP 'require()' functions. An unauthenticated attacker can leverage this issue to view arbitrary files on the remote host and possibly to execute arbitrary PHP code taken from files on the remote host, both subject to the privileges of the web server user id.

Note that successful exploitation is not affected by PHP's 'register_globals' and 'magic_quotes_gpc' settings.

Solution

Remove the affected 'install.php' script.

See Also

https://seclists.org/bugtraq/2006/Feb/133

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

https://dragonflycms.org/Forums/viewtopic/p=98034.html

Plugin Details

Severity: High

ID: 20869

File Name: dragonfly_currentlang_file_include.nasl

Version: 1.23

Type: remote

Family: CGI abuses

Published: 2/10/2006

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.3

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

Required KB Items: www/PHP

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Available: true

Exploit Ease: Exploits are available

Vulnerability Publication Date: 2/8/2006

Reference Information

CVE: CVE-2006-0644

BID: 16546