|
PHP "phpinfo()" Cross-Site Scripting and Security Bypass
|
|
|
|
|
Secunia Advisory:
|
SA19599
|
|
|
Release Date:
|
2006-04-10
|
|
Last Update:
|
2006-11-03
|
|
|
Critical:
|

Not critical
|
|
Impact:
|
Security Bypass Cross Site Scripting
|
|
Where:
|
From remote
|
|
Solution Status:
|
Vendor Patch
|
|
| Software: | PHP 4.0.x PHP 4.1.x PHP 4.2.x PHP 4.3.x PHP 4.4.x PHP 5.0.x PHP 5.1.x
|
| | CVE reference: | CVE-2006-0996 (Secunia mirror) CVE-2006-1494 (Secunia mirror) CVE-2006-1608 (Secunia mirror)
|
|
|
Want to know the next time vulnerabilities are fixed in this product? - Companies can be alerted via email and SMS! |
|
|
Description: Maksymilian Arciemowicz has reported some vulnerabilities in PHP, which can be exploited by malicious, local users to bypass certain security restrictions and by malicious people to conduct cross-site scripting attacks.
1) The "phpinfo()" PHP function only sanitises the first 4096 characters of an array request parameter before it is returned to users. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site via a script calling "phpinfo()".
2) An error in the "tempnam()" PHP function can be exploited to bypass the "open_basedir" directive and create temporary files in arbitrary directories via directory traversal attacks.
3) An error in the "copy()" PHP function can be exploited to bypass the safe mode protection mechanism and access files outside the "open_basedir" root via the "compress.zlib://" file wrapper.
The vulnerabilities have been reported in versions 4.4.2 and 5.1.2, and prior.
Do you have this product installed on your home computer? Scan using the free Personal Software Inspector. Check if a vulnerable version is installed on computers in your corporate network, scan using the Network Software Inspector.
Solution: Update to version 4.4.3, 5.1.3, or 5.2.0.
http://www.php.net/downloads.php
PHP scripts calling "phpinfo()" should not be publicly accessible on production systems.
Provided and/or discovered by: Maksymilian Arciemowicz
Changelog: 2006-05-04: Updated "Solution" section.
2006-08-03: Updated "Solution" section.
2006-11-03: Updated "Solution" section.
Original Advisory: http://securityreason.com/achievement_securityalert/34
http://securityreason.com/achievement_securityalert/36
http://securityreason.com/achievement_securityalert/37
|
|
|
|
|
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.
Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
|
|
|
|
48 Related Secunia Security Advisories, displaying 10
|
|
|
1. PHP Multiple Vulnerabilities
|
|
2. PHP Multiple Vulnerabilities
|
|
3. PHP COM Objects Security Bypass
|
|
4. PHP crypt() Race Condition Vulnerability
|
|
5. PHP "gdPngReadData()" Truncated PNG Data Denial of Service
|
|
6. PHP Multiple Vulnerabilities
|
|
7. PHP "FILTER_VALIDATE_EMAIL" Filter Newline Injection
|
|
8. PHP "readwbmp()" Integer Overflow Vulnerability
|
|
9. PHP Multiple Code Execution Vulnerabilities
|
|
10. PHP Interbase Extension "isc_attach_database()" Buffer Overflow
|
Show all related advisories
|
|
|
Send Feedback to Secunia
|
|
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.
Ideas, suggestions, and other feedback are most welcome.
|
|
|
|