PHP 4.x - PHPInfo Cross-Site Scripting

Related Vulnerabilities: CVE-2005-3388  
Publish Date: 31 Oct 2005
Author: Stefan Esser
                							

                source: http://www.securityfocus.com/bid/15248/info

PHP is prone to a cross-site scripting vulnerability. This issue is due to a failure in the application to properly sanitize user-supplied input.

An attacker may leverage this issue to have arbitrary script code execute in the browser of an unsuspecting user in the context of the affected site. This may help the attacker steal cookie-based authentication credentials and launch other attacks. 

http://www.example.com/phpinfo.php?GLOBALS[test]=<script>alert(document.cookie);</script>