PHP addslashes view files
| php-addslashes-view-files (18516) |
Description:
PHP could allow a remote attacker to view arbitrary files on the system, caused by improper filtering of the '\0' string by the addslashes function. A remote attacker could send a specially-crafted URL to view arbitrary files on the system.
Consequences:
Obtain Information
Remedy:
For PHP4:
Upgrade to the latest version of PHP4 (4.3.10 or later), available from the PHP Web site. See References.
For PHP5:
Upgrade to the latest version of PHP5 (5.0.3 or later), available from the PHP Web site. See References.
For OpenPKG:
Refer to OpenPKG Security Advisory OpenPKG-SA-2004.053 for patch, upgrade, or suggested workaround information. See References.
For other distributions:
Contact your vendor for upgrade or patch information.
References:
- BugTraq Mailing List, Thu Dec 16 2004 - 08:09:55 CST: PHP Input Validation Vulnerabilities.
- BugTraq Mailing List, Wed Dec 15 2004 - 12:46:20 CST : Advisory 01/2004: Multiple vulnerabilities in PHP 4/5.
- CIAC Information Bulletin P-116: Apple Security Update 2005-001 for Mac OS X.
- PHP Web site: PHP 4.3.10 Release Announcement.
- BID-11981: PHP Multiple Remote Vulnerabilities
- CVE-2004-1020: The addslashes function in PHP 4.3.9 does not properly escape a NULL (/0) character, which may allow remote attackers to read arbitrary files in PHP applications that contain a directory traversal vulnerability in require or include statements, but are otherwise protected by the magic_quotes_gpc mechanism. NOTE: this issue was originally REJECTed by its CNA before publication, but that decision is in active dispute. This candidate may change significantly in the future as a result of further discussion.
- GLSA-200412-14: PHP: Multiple vulnerabilities
- OpenPKG-SA-2004.053: PHP
- OSVDB ID: 12600: PHP addslashes() NULL Byte Bypass
Platforms Affected:
- Gentoo Linux
- OpenPKG OpenPKG 2.1
- OpenPKG OpenPKG 2.2
- OpenPKG OpenPKG CURRENT
- PHP PHP 4.0 Beta 4 Patch1
- PHP PHP 4.0 RC1
- PHP PHP 4.0 Beta4
- PHP PHP 4.0 Beta3
- PHP PHP 4.0 Beta2
- PHP PHP 4.0 Beta1
- PHP PHP 4.0 RC2
- 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.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 5.0.0 Beta1
- PHP PHP 5.0.0 Beta2
- PHP PHP 5.0.0 Beta3
- PHP PHP 5.0.0
- PHP PHP 5.0.0 RC1
- PHP PHP 5.0.0 Beta4
- PHP PHP 5.0.0 RC3
- PHP PHP 5.0.0 RC2
- PHP PHP 5.0.1
- PHP PHP 5.0.2
Reported:
Dec 15, 2004
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 (IBM 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.
For corrections or additions please email ignore thisxforceignore this@ignore thisus.ignore thisibm.comignore this
