PHP phpinfo() long array cross-site scripting
| php-phpinfo-long-array-xss (25702) |
Description:
PHP is vulnerable to cross-site scripting, caused by improper validation of user-supplied input by the php_print_gpcse_array() function. A remote attacker could exploit this vulnerability on affected PHP-based Web applications using an array value larger than 4096 bytes to execute script in a victim's Web browser within the security context of the hosting Web site, allowing the attacker to steal the victim's cookie-based authentication credentials.
Platforms Affected:
- Canonical, Ubuntu 5.04
- Canonical, Ubuntu 5.10
- Canonical, Ubuntu 6.06 LTS
- Gentoo, Linux
- Novell, UnitedLinux 1.0
- PHP, PHP 4.0 RC1
- PHP, PHP 4.0 RC2
- PHP, PHP 4.0 Beta4
- PHP, PHP 4.0 Beta3
- PHP, PHP 4.0 Beta2
- PHP, PHP 4.0 Beta 4 Patch1
- PHP, PHP 4.0 Beta1
- PHP, PHP 4.0.0
- PHP, PHP 4.0.1
- PHP, PHP 4.0.2
- PHP, PHP 4.0.3
- PHP, PHP 4.0.4
- PHP, PHP 4.0.5
- PHP, PHP 4.0.6
- PHP, PHP 4.0.7
- PHP, PHP 4.1.0
- PHP, PHP 4.1.1
- PHP, PHP 4.1.2
- PHP, PHP 4.1.3
- PHP, PHP 4.2.0
- PHP, PHP 4.2.1
- PHP, PHP 4.2.2
- PHP, PHP 4.2.3
- PHP, PHP 4.2.4
- PHP, PHP 4.3.0
- PHP, PHP 4.3.1
- PHP, PHP 4.3.10
- PHP, PHP 4.3.11
- PHP, PHP 4.3.2
- PHP, PHP 4.3.3
- PHP, PHP 4.3.4
- PHP, PHP 4.3.5
- PHP, PHP 4.3.6
- PHP, PHP 4.3.7
- PHP, PHP 4.3.8
- PHP, PHP 4.3.9
- PHP, PHP 4.4.0
- PHP, PHP 4.4.1
- PHP, PHP 4.4.2
- PHP, PHP 5.0.0 Beta4
- PHP, PHP 5.0.0 RC1
- PHP, PHP 5.0.0 RC2
- PHP, PHP 5.0.0 RC3
- PHP, PHP 5.0.0 Beta3
- PHP, PHP 5.0.0 Beta2
- PHP, PHP 5.0.0 Beta1
- PHP, PHP 5.0.0
- PHP, PHP 5.0.1
- PHP, PHP 5.0.2
- PHP, PHP 5.0.3
- PHP, PHP 5.0.4
- PHP, PHP 5.0.5
- PHP, PHP 5.1.0
- PHP, PHP 5.1.1
- PHP, PHP 5.1.2
- RedHat, Enterprise Linux 2.1 ES
- RedHat, Enterprise Linux 2.1 WS
- RedHat, Enterprise Linux 2.1 AS
- RedHat, Enterprise Linux 3 WS
- RedHat, Enterprise Linux 3 ES
- RedHat, Enterprise Linux 3 AS
- RedHat, Enterprise Linux 3 Desktop
- RedHat, Enterprise Linux 4 Desktop
- RedHat, Enterprise Linux 4 ES
- RedHat, Enterprise Linux 4 WS
- RedHat, Enterprise Linux 4 AS
- RedHat, Linux Advanced Workstation 2.1 Itanium
- RedHat, Stronghold
- SuSE, SuSE Linux 10.0
- SuSE, SuSE Linux 9.1
- SuSE, SuSE Linux 9.2
- SuSE, SuSE Linux 9.3
- SuSE, SuSE Linux Enterprise Server 8.0
- SuSE, SuSE SLES 9
Remedy:
Upgrade to the latest version of PHP (5.1.3 or later), available from The PHP Group Web site. See References.
For Red Hat Linux:
Refer to RHSA-2006:0276-9 for patch, upgrade, or suggested workaround information. See References.
For Red Hat Linux (php):
Refer to RHSA-2006:0501-6 for patch, upgrade, or suggested workaround information. See References.
For Gentoo Linux:
Refer to Gentoo Linux Security Announcement GLSA 2006-05-08 for patch, upgrade, or suggested workaround information. See References.
Refer to SUSE Security Announcement SUSE-SA:2006:024 for patch, upgrade, or suggested workaround information. See References.
For other distributions:
Contact your vendor for upgrade or patch information.
Consequences:
Gain Access
References:
- Full-Disclosure Mailing List, Sat Apr 08 2006 - 14:38:33 CDT, phpinfo() Cross Site Scripting PHP 5.1.2 and 4.4.2 at http://archives.neohapsis.com/archives/fulldisclosure/2006-04/0169.html.
- PHP CVS Repository, [cvs] Index of /php-src at http://cvs.php.net/viewcvs.cgi/php-src/.
- The PHP Group Web site, PHP: Hypertext Preprocessor at http://www.php.net/.
- The PHP Group Web site, PHP 5.1.3. Release Announcement at http://www.php.net/release_5_1_3.php.
- ASA-2006-129: php security update (RHSA-2006-0276)
- ASA-2006-160: php security update (RHSA-2006-0501)
- BID-17362: PHP PHPInfo Large Input Cross-Site Scripting Vulnerability
- CVE-2006-0996: Cross-site scripting (XSS) vulnerability in phpinfo (info.c) in PHP 5.1.2 and 4.4.2 allows remote attackers to inject arbitrary web script or HTML via long array variables, including (1) a large number of dimensions or (2) long values, which prevents HTML tags from being removed.
- FrSIRT/ADV-2006-1290: PHP Multiple Function Security Bypass and Cross Site Scripting Vulnerabilities
- FrSIRT/ADV-2006-2685: Avaya Security Update Fixes Multiple PHP Remote Security Bypass Vulnerabilities
- GLSA-200605-08: PHP: Multiple vulnerabilities
- OSVDB ID: 24484: PHP phpinfo() Function Long Array XSS
- RHSA-2006-0276: php security update
- RHSA-2006-0501: php security update
- RHSA-2006-0549: php security update for Stronghold
- SA19599: PHP "phpinfo()" Cross-Site Scripting and Security Bypass
- SA20951: Avaya Products PHP Multiple Vulnerabilities
- SA21564: Avaya Products PHP Multiple Vulnerabilities
- SECTRACK ID: 1015879: PHP phpinfo() Array Validation Bug Lets Remote Users Conduct Cross-Site Scripting Attacks
- SUSE-SA:2006:024: various php security problems
- USN-320-1: PHP vulnerabilities
- USN-320-2: PHP regression
Reported:
Apr 08, 2006
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
Copyright (c) 1994-2008 Internet Security Systems, Inc. All rights reserved worldwide.
For corrections or additions please email xforce@iss.net
