phpLDAPadmin lib/QueryRender.php base Parameter XSS

medium Nessus Plugin ID 58040


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


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.


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

See Also

Plugin Details

Severity: Medium

ID: 58040

File Name: phpldapadmin_query_engine_xss.nasl

Version: 1.8

Type: remote

Published: 2/20/2012

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information


Risk Factor: Low

Score: 3.8


Risk Factor: Medium

Base Score: 4.3

Temporal Score: 3.7

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

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, 442, 629, 711, 712, 722, 725, 74, 750, 751, 79, 800, 801, 809, 811, 864, 900, 928, 931, 990