PHP-CGI Query String Flaw Exploited to Expose Source Code and Install Backdoors
Active Exploitation · 2 sources · Updated 1mo ago · First seen May 7, 2012

Attackers exploited a PHP-CGI query string vulnerability, tracked as VU#520827, to disclose PHP source code and execute attacker-controlled code on vulnerable websites. The PHP bug tracker recorded the issue on May 2, 2012, and Sucuri reported active exploitation on May 8. Malicious requests supplied PHP-CGI options through query strings, enabling source disclosure or configuration changes that allowed attacker-supplied input or an external shell to be included.
Sucuri’s honeypots recorded exploitation attempts from 16 IP addresses, and successful attacks resulted in backdoors being uploaded to compromised websites for further attacks against the servers. The report urged administrators to promptly update PHP, use temporary .htaccess request filtering, or move away from the vulnerable CGI configuration. Websites running PHP through CGI were the priority for exposure checks and remediation; compromised sites also required investigation for uploaded backdoors.


