The masort function in lib/functions.php in phpLDAPadmin 1.2.x before 1.2.2 contains a vulnerability that allows remote attackers to execute arbitrary PHP code. This is achieved via the 'orderby' parameter (also referred to as the 'sortby' variable) in a query_engine action sent to cmd.php. The vulnerability was actively exploited in the wild as of October 2011.
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos (1 hidden).
This repository contains a single Metasploit module: 'phpldapadmin_query_engine.rb', which targets a remote PHP code injection vulnerability (CVE-2011-4075) in phpLDAPadmin versions 1.2.1.1 and earlier. The exploit abuses unsanitized user input passed to PHP's create_function() in 'lib/functions.php', allowing arbitrary PHP code execution via crafted HTTP POST requests. The module is written in Ruby and leverages Metasploit's HttpClient mixin. It allows the attacker to specify a custom command or payload, which is base64-encoded and delivered in a custom HTTP header. The exploit requires the attacker to know the URI path to the phpLDAPadmin installation (default: '/phpldapadmin/htdocs/'). The module checks for the vulnerable version by requesting 'index.php', establishes a session, and then sends the exploit to 'cmd.php'. If successful, the attacker gains the ability to execute arbitrary PHP code on the target server. The code is operational and suitable for real-world exploitation, provided the target is vulnerable and accessible.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.