phpLDAPadmin cmd.php cmd Parameter Local File Inclusion

medium Nessus Plugin ID 43402

Synopsis

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

Description

The version of phpLDAPadmin installed on the remote host fails to sanitize user-supplied input to the 'cmd' parameter when passed to the 'cmd.php' script before using it to include PHP code.

Regardless of PHP's 'register_globals' and 'magic_quotes_gpc' settings, 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 version 1.2.0 or later.

Plugin Details

Severity: Medium

ID: 43402

File Name: phpldapadmin_cmd_lfi.nasl

Version: 1.15

Type: remote

Family: CGI abuses

Published: 12/23/2009

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.0

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:deon_george:phpldapadmin

Required KB Items: www/phpLDAPadmin

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Ease: No exploit is required

Exploited by Nessus: true

Patch Publication Date: 7/21/2009

Vulnerability Publication Date: 12/10/2009

Reference Information

CVE: CVE-2009-4427

BID: 37327

CWE: 22

SECUNIA: 37848