phpLDAPadmin lib/QueryRender.php base Parameter XSS

This script is Copyright (C) 2012 Tenable Network Security, Inc.


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.

See also :

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

Solution :

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

Risk factor :

Medium / CVSS Base Score : 4.3
(CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N)
CVSS Temporal Score : 3.6
(CVSS2#E:F/RL:OF/RC:C)
Public Exploit Available : true

Family: CGI abuses : XSS

Nessus Plugin ID: 58040 ()

Bugtraq ID: 51793

CVE ID: CVE-2012-0834