Skip to content
OpenAdvisories
Unscored Public exploit CVE-2011-4075 EUVD-2011-4027GHSA-5h4f-2c6r-8cj3

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 o…

Published Nov 2, 2011 · Updated Aug 6, 2024 · Assigned by redhat

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 phpldapadmin 1.2.0.5-2.1 —
Debian 13 phpldapadmin 1.2.0.5-2.1 —
Debian 12 phpldapadmin 1.2.0.5-2.1 —
Debian 6.0 phpldapadmin 1.2.0.5-2+squeeze1 DSA-2333-1
Debian 5.0 phpldapadmin 1.1.0.5-6+lenny2 DSA-2333-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

Exploit-DB 2

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 1

References