{"id":"CVE-2011-4075","published":"2011-11-02T17:00:00Z","modified":"2024-08-06T23:53:32Z","title":"The masort function in lib/functions.php in phpLDAPadmin 1.2.x before 1.2.2 allows remote attackers to execute…","vendor":null,"product":null,"tier":"core","eol":null,"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"The masort function in lib/functions.php of phpLDAPadmin 1.2.x (before 1.2.2) contains a flaw in how it handles sorting input. An attacker who can send requests to the application's cmd.php query_engine action can supply a crafted orderby (sortby) parameter to execute arbitrary PHP code, with no authentication or user interaction described as required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-03T14:46:47Z"},"cvss":null,"epss":{"score":0.51891,"percentile":0.98952,"date":"2026-11-03","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2011-11-02","exploitedFirstSeen":"2011-11-02","ransomware":false,"evidence":[{"url":"https://nvd.nist.gov/vuln/detail/cve-2011-4075","date":"2011-11-02"},{"url":"https://www.cve.org/CVERecord?id=CVE-2011-4075","date":"2011-11-02"}],"evidenceTotal":2,"provenance":"source"},"exploited":true,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[],"references":[{"url":"http://sourceforge.net/tracker/index.php?func=detail&aid=3417184&group_id=61828&atid=498546","tags":["x_refsource_CONFIRM"]},{"url":"http://osvdb.org/76594","tags":["vdb-entry","x_refsource_OSVDB"]},{"url":"http://www.securityfocus.com/bid/50331","tags":["vdb-entry","x_refsource_BID"]},{"url":"http://openwall.com/lists/oss-security/2011/10/25/2","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.exploit-db.com/exploits/18021/","tags":["exploit","x_refsource_EXPLOIT-DB"]},{"url":"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","tags":["x_refsource_CONFIRM"]},{"url":"http://dev.metasploit.com/redmine/issues/5820","tags":["x_refsource_MISC"]},{"url":"http://secunia.com/advisories/46672","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://secunia.com/advisories/46551","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://openwall.com/lists/oss-security/2011/10/24/9","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://phpldapadmin.sourceforge.net/wiki/index.php/Main_Page","tags":["x_refsource_CONFIRM"]},{"url":"http://www.debian.org/security/2011/dsa-2333","tags":["vendor-advisory","x_refsource_DEBIAN"]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2011-4027","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2011-4027","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[{"id":18021,"url":"https://www.exploit-db.com/exploits/18021","title":"phpLDAPadmin 1.2.1.1 - Remote PHP Code Injection (1)","type":"webapps","platform":"php","date":"2011-10-23","verified":true,"provenance":"source"},{"id":18031,"url":"https://www.exploit-db.com/exploits/18031","title":"phpLDAPadmin 1.2.1.1 - Remote PHP Code Injection (Metasploit) (2)","type":"webapps","platform":"php","date":"2011-10-25","verified":true,"provenance":"source"}],"exploitSources":{"exploitdb":{"count":2,"earliest":"2011-10-23"},"metasploit":[{"name":"phpLDAPadmin query_engine Remote PHP Code Injection","module":"exploit/multi/http/phpldapadmin_query_engine","type":"exploit","disclosureDate":"2011-10-24","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/phpldapadmin_query_engine.rb"}],"first":{"date":"2011-10-23","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/18021"},"provenance":"source"},"exploitRefs":["http://www.exploit-db.com/exploits/18021/"],"flow":[],"timeline":[{"date":"2011-10-23","kind":"exploit-public","label":"First public exploit: Exploit-DB (EDB-18021); later: Metasploit 2011-10-24","url":"https://www.exploit-db.com/exploits/18021","provenance":"source"},{"date":"2011-11-02","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2011-4075","provenance":"source"},{"date":"2011-11-02","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://nvd.nist.gov/vuln/detail/cve-2011-4075","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"Exploit-DB","daysToKev":null},"priority":{"score":59.8,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 5480 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.79,"detail":"percentile 0.9895"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 NVD reference tagged Exploit; 2 Exploit-DB entries; 1 Metasploit module"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}