PhpGedView PGV_BASE_DIRECTORY Parameter Remote File Inclusion

high Nessus Plugin ID 20339

Synopsis

The remote web server contains a PHP application that is prone to a remote file inclusion attack.

Description

The version of PhpGedView installed on the remote host fails to sanitize user-supplied input to the 'PGV_BASE_DIRECTORY' parameter of the 'help_text_vars.php' script before using it in a PHP 'require' function.

Provided PHP's 'register_globals' setting is enabled, an unauthenticated attacker may be able to exploit this flaw to read arbitrary files on the remote host and/or run arbitrary code, possibly taken from third-party hosts, subject to the privileges of the web server user id.

In addition, the application reportedly fails to sanitize user input to the 'user_language', 'user_email', and 'user_gedcomid' parameters of the 'login_register.php' script, which could be used by an attacker to inject arbitrary PHP code into a log file that can then be executed on the affected host, subject to the permissions of the web server user id.

Solution

Upgrade to PhpGedView 3.3.7 or 4.0 beta 3 and apply the patch referenced in the vendor advisory above.

See Also

http://www.nessus.org/u?e459da51

http://www.nessus.org/u?07c3dea0

Plugin Details

Severity: High

ID: 20339

File Name: phpgedview_pgv_base_directory_file_includes.nasl

Version: 1.27

Type: remote

Family: CGI abuses

Published: 12/21/2005

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: 5.9

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

Vulnerability Information

CPE: cpe:/a:phpgedview:phpgedview

Required KB Items: www/PHP, www/phpgedview

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Ease: No exploit is required

Vulnerability Publication Date: 12/20/2005

Reference Information

CVE: CVE-2005-4467, CVE-2005-4468, CVE-2005-4469

BID: 15983