Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 388349 (CVE-2011-4074) - <net-nds/phpldapadmin- Cross-Site Scripting and Code Injection Vulnerabilities (CVE-2011-{4074,4075})
Summary: <net-nds/phpldapadmin- Cross-Site Scripting and Code Injection Vul...
Alias: CVE-2011-4074
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: Gentoo Security
Whiteboard: ~1 [noglsa]
Keywords: InVCS
Depends on:
Reported: 2011-10-24 15:56 UTC by Agostino Sarubbo
Modified: 2011-11-17 00:01 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2011-10-24 15:56:30 UTC
From secunia security advisory at $URL:

1) Input appended to the URL in cmd.php (when "cmd" is set to "_debug") is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.

2) Input passed to the "orderby" parameter in cmd.php (when "cmd" is set to "query_engine", "query" is set to "none", and "search" is set to e.g. "1") is not properly sanitised in lib/functions.php before being used in a "create_function()" function call. This can be exploited to inject and execute arbitrary PHP code.

The vulnerabilities are confirmed in version Other versions may also be affected.

Fixed in the GIT repository.


@maintainer(s): Please patch it and remove old/vulnerable version
Comment 1 Jorge Manuel B. S. Vicetto Gentoo Infrastructure gentoo-dev 2011-10-25 18:20:34 UTC
phpldapadmin- committed to tree with the security patches.
Comment 2 Tim Sammut (RETIRED) gentoo-dev 2011-10-25 18:22:59 UTC
Great, thanks, closing noglsa for ~arch only package.
Comment 3 GLSAMaker/CVETool Bot gentoo-dev 2011-11-17 00:01:27 UTC
CVE-2011-4075 (
  The masort function in lib/functions.php in phpLDAPadmin 1.2.x before 1.2.2
  allows remote attackers to execute arbitrary PHP code via the orderby
  parameter (aka sortby variable) in a query_engine action to cmd.php, as
  exploited in the wild in October 2011.

CVE-2011-4074 (
  Cross-site scripting (XSS) vulnerability in cmd.php in phpLDAPadmin 1.2.x
  before 1.2.2 allows remote attackers to inject arbitrary web script or HTML
  via an _debug command.