Multiple vulnerabilities have been identified in PHP, which could be exploited by attackers to bypass security restrictions, execute arbitrary scripting code, or cause a denial of service.
The first issue is due to an input validation error in the "phpinfo()" function that does not properly validate an overly long array, which could be exploited by attackers to cause arbitrary scripting code to be executed by the user's browser in the security context of an affected Web site.
The second flaw is due to an input validation error when processing a specially crafted argument passed to the "tempnam()" function, which could be exploited by attackers to bypass "open_basedir" restrictions and create temporary files in an arbitrary directory.
The third vulnerability is due to an input validation error when processing specially crafted arguments passed to the "copy()" function, which could be exploited by attackers to bypass "open_basedir" and "safe_mode" restrictions, and gain unauthorized access to arbitrary files via the "compress.zlib://" file wrapper.
The fourth issue is due to an infinite loop when processing a self-referencing function, which could be exploited by malicious users to crash a vulnerable application via a specially crafted PHP script.
Credits
Vulnerabilities reported by Maksymilian Arciemowicz
ChangeLog
2006-04-10 : Initial release
2006-05-02 : Updated Solution (PHP5)
2006-08-03 : Updated Solution (PHP4)
Vulnerability Management
Subscribe to FrSIRT VNS and receive real-time e-mail and SMS alerts when new vulnerabilities, exploits, or patches relevant to your systems and network configurations are available.
Feedback
If you have additional information or corrections for this security advisory please submit them via our contact form or by email to updates@frsirt.com.