PhpGedView PGV_BASE_DIRECTORY Parameter Remote File Inclusion

High Nessus Network Monitor Plugin ID 3333

Synopsis

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

Description

The remote host appears to be running PhpGedView, a web-based genealogy program written in PHP. 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 version 3.3.7 or 4.0 beta 3 and apply the patch referenced in the vendor advisory above.

See Also

http://retrogod.altervista.org/phpgedview_337_xpl.html

https://sourceforge.net/tracker/index.php?func=detail&aid=1386434&group_id=55456&atid=477081

http://sourceforge.net/tracker/index.php?func=detail&aid=1386434&group_id=55456&atid=477081

Plugin Details

Severity: High

ID: 3333

Family: CGI

Published: 2005/12/21

Modified: 2016/01/15

Dependencies: 1442

Nessus ID: 20339

Risk Information

Risk Factor: High

CVSSv2

Base Score: 7.5

Temporal Score: 7.5

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

Temporal Vector: CVSS2#E:H/RL:U/RC:ND

CVSSv3

Base Score: 7.3

Temporal Score: 7.3

Vector: CVSS3#AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Temporal Vector: CVSS3#E:H/RL:U/RC:X

Vulnerability Information

CPE: cpe:/a:phpgedview:phpgedview

Reference Information

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

BID: 15983