CVE-2011-4075
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Exploits
Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.
Exploit-DB
phpLDAPadmin 1.2.1.1 - Remote PHP Code Injection (1)
phpLDAPadmin 1.2.1.1 - Remote PHP Code Injection (Metasploit) (2)
Metasploit modules
OS impact
Debian Fixed 4 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Fixed | 1.2.0.5-2.1 |
| sid | Fixed | 1.2.0.5-2.1 |
| forky | Fixed | 1.2.0.5-2.1 |
| bookworm | Fixed | 1.2.0.5-2.1 |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| phpldapadmin_project | phpldapadmin | 1.2.0 | |
| phpldapadmin_project | phpldapadmin | 1.2.0.1 | |
| phpldapadmin_project | phpldapadmin | 1.2.0.2 | |
| phpldapadmin_project | phpldapadmin | 1.2.0.3 | |
| phpldapadmin_project | phpldapadmin | 1.2.0.4 | |
| phpldapadmin_project | phpldapadmin | 1.2.0.5 | |
| phpldapadmin_project | phpldapadmin | 1.2.1 | |
| phpldapadmin_project | phpldapadmin | 1.2.1.1 | |
References
- http://dev.metasploit.com/redmine/issues/5820
- http://openwall.com/lists/oss-security/2011/10/24/9
- http://openwall.com/lists/oss-security/2011/10/25/2
- http://osvdb.org/76594
- http://phpldapadmin.git.sourceforge.net/git/gitweb.cgi?p=phpldapadmin/phpldapadmin%3Ba=blobdiff%3Bf=lib/functions.php%3Bh=eb160dc9f7d74e563131e21d4c85d7849a0c6638%3Bhp=19fde9974d4e5eb3bfac04bb223ccbefdb98f9a0%3Bhb=76e6dad13ef77c5448b8dfed1a61e4acc7241165%3Bhpb=5d4245f93ae6f065e7535f268e3cd87a23b07744
- http://phpldapadmin.sourceforge.net/wiki/index.php/Main_Page
- http://secunia.com/advisories/46551
- http://secunia.com/advisories/46672
- http://sourceforge.net/tracker/index.php?func=detail&aid=3417184&group_id=61828&atid=498546
- http://www.debian.org/security/2011/dsa-2333
- http://www.exploit-db.com/exploits/18021/
- http://www.securityfocus.com/bid/50331
- https://security-tracker.debian.org/tracker/CVE-2011-4075
CWEs
CWE-94
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.