phpPgAdmin index.php _language Parameter Local File Inclusion

medium Nessus Plugin ID 35060

Synopsis

The remote web server contains a PHP application that is susceptible to a local file include attack.

Description

The remote host is running phpPgAdmin, a web-based administration tool for PostgreSQL.

The installed version of phpPgAdmin fails to filter user-supplied input to the '_language' parameter before using it to include PHP code in 'libraries/lib.inc.php'. Provided PHP's 'register_globals' setting is enabled, an unauthenticated attacker may be able to leverage 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 phpPgAdmin 4.2.2 or later.

See Also

http://www.nessus.org/u?9fae0401

Plugin Details

Severity: Medium

ID: 35060

File Name: phppgadmin_language_file_include.nasl

Version: 1.21

Type: remote

Family: CGI abuses

Published: 12/8/2008

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.2

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5.3

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

Vulnerability Information

CPE: cpe:/a:phppgadmin:phppgadmin

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-2008-5587

BID: 32670

CWE: 22

SECUNIA: 33014