phpLDAPadmin lib/QueryRender.php base Parameter XSS

medium Nessus Plugin ID 58040
New! Plugin Severity Now Using CVSS v3

The calculated severity for Plugins has been updated to use CVSS v3 by default. Plugins that do not have a CVSS v3 score will fall back to CVSS v2 for calculating severity. Severity display preferences can be toggled in the settings dropdown.

Synopsis

The remote web server contains a PHP script that is vulnerable to a reflected cross-site scripting attack.

Description

The version of phpLDAPadmin on the remote host fails to properly sanitize the base parameter of 'lib/QueryRender.php' script before using it to generate dynamic HTML.

By tricking someone into clicking on a specially crafted link, an attacker may be able exploit this to inject arbitrary HTML and script code in a user's browser to be executed within the security context of the affected site.

Solution

Grab the latest copy of 'lib/QueryRender.php' from the phpLDAPadmin GIT repository or patch the file manually.

See Also

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

http://www.nessus.org/u?2962f46b

Plugin Details

Severity: Medium

ID: 58040

File Name: phpldapadmin_query_engine_xss.nasl

Version: 1.7

Type: remote

Published: 2/20/2012

Updated: 1/19/2021

Dependencies: phpldapadmin_detect.nasl

Risk Information

VPR

Risk Factor: Low

Score: 3.8

CVSS v2

Risk Factor: Medium

Base Score: 4.3

Temporal Score: 3.7

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

Temporal Vector: E:H/RL:OF/RC:C

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

Patch Publication Date: 1/24/2012

Vulnerability Publication Date: 1/23/2012

Reference Information

CVE: CVE-2012-0834

BID: 51793

CWE: 20, 74, 79, 442, 629, 711, 712, 722, 725, 750, 751, 800, 801, 809, 811, 864, 900, 928, 931, 990