CVE-2012-2311
CVE-2012-2311
sapi/cgi/cgi_main.c in PHP before 5.3.13 and 5.4.x before 5.4.3, when configured as a CGI script (aka php-cgi), does not properly handle query strings that contain a %3D sequence but no = (equals sign) character, which allows remote attackers to execute arbitrary code by placing command-line options in the query string, related to lack of skipping a certain php_getopt for the 'd' case. NOTE: this vulnerability exists because of an incomplete fix for CVE-2012-1823.
Affected products
n/a · n/apublic PoCs found — 4
exploitdbwww.exploit-db.com/exploits/29290unverifiedexploitdbwww.exploit-db.com/exploits/29316unverifiedexploitdbwww.exploit-db.com/exploits/18834unverifiedexploitdbwww.exploit-db.com/exploits/18836unverified⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.
Want to know if your infrastructure is exposed to this?
Talk to TrueHacking →References
http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.htmlhttp://lists.opensuse.org/opensuse-security-announce/2012-05/msg00002.htmlhttp://lists.opensuse.org/opensuse-security-announce/2012-05/msg00007.htmlhttp://lists.opensuse.org/opensuse-security-announce/2012-05/msg00011.htmlhttp://marc.info/?l=bugtraq&m=134012830914727&w=2https://bugs.php.net/bug.php?id=61910https://bugs.php.net/patch-display.php?bug_id=61910&patch=cgi.diff-fix-check.patch&revision=1336093719&display=1http://secunia.com/advisories/49014http://secunia.com/advisories/49085https://h20564.www2.hp.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c03839862http://support.apple.com/kb/HT5501