PHP 5 Substr_Count Integer Overflow Vulnerability
BID:24012
Info
PHP 5 Substr_Count Integer Overflow Vulnerability
| Bugtraq ID: | 24012 |
| Class: | Boundary Condition Error |
| CVE: |
CVE-2007-1375 CVE-2007-2748 |
| Remote: | No |
| Local: | Yes |
| Published: | May 16 2007 12:00AM |
| Updated: | Jul 06 2016 02:39PM |
| Credit: | The vendor disclosed this issue. |
| Vulnerable: |
SuSE SUSE Linux Enterprise Server 9 SP3 SuSE SUSE Linux Enterprise Server 8 SuSE SUSE Linux Enterprise Server 10 SP1 SuSE SUSE Linux Enterprise Server 10 SuSE SUSE Linux Enterprise SDK 9 SuSE SUSE Linux Enterprise SDK 10.SP1 SuSE SUSE Linux Enterprise SDK 10 SuSE SUSE Linux Enterprise Desktop 10 SP1 SuSE SUSE Linux Enterprise Desktop 10 SuSE Linux Professional 10.2 x86_64 SuSE Linux Personal 10.2 x86_64 S.u.S.E. UnitedLinux 1.0 S.u.S.E. SuSE Linux Standard Server 8.0 S.u.S.E. SuSE Linux School Server for i386 S.u.S.E. SUSE LINUX Retail Solution 8.0 S.u.S.E. SuSE Linux Openexchange Server 4.0 S.u.S.E. openSUSE 10.2 S.u.S.E. Open-Enterprise-Server 0 S.u.S.E. Office Server S.u.S.E. Novell Linux POS 9 S.u.S.E. Novell Linux Desktop 9.0 S.u.S.E. Linux Professional 10.0 OSS S.u.S.E. Linux Professional 10.0 S.u.S.E. Linux Professional 10.2 S.u.S.E. Linux Professional 10.1 S.u.S.E. Linux Personal 10.0 OSS S.u.S.E. Linux Personal 10.2 S.u.S.E. Linux Personal 10.1 S.u.S.E. Linux Openexchange Server S.u.S.E. Linux Desktop 10 S.u.S.E. Linux 10.1 x86-64 S.u.S.E. Linux 10.1 x86 S.u.S.E. Linux 10.1 ppc S.u.S.E. Linux 10.0 x86-64 S.u.S.E. Linux 10.0 x86 S.u.S.E. Linux 10.0 ppc PHP PHP 5.2.1 PHP PHP 5.1.6 PHP PHP 5.1.5 PHP PHP 5.1.4 PHP PHP 5.1.3 -RC1 PHP PHP 5.1.3 PHP PHP 5.1.2 PHP PHP 5.1.1 PHP PHP 5.1 PHP PHP 5.0.5 PHP PHP 5.0.4 PHP PHP 5.0.3 PHP PHP 5.0.2 PHP PHP 5.0.1 PHP PHP 5.0 candidate 3 PHP PHP 5.0 candidate 2 PHP PHP 5.0 candidate 1 PHP PHP 5.2 |
| Not Vulnerable: |
PHP PHP 5.2.2 |
Discussion
PHP 5 Substr_Count Integer Overflow Vulnerability
PHP 5 is prone to an integer-overflow vulnerability because it fails to ensure that integer values aren't overrun.
A local attacker can exploit this vulnerability to obtain sensitive information (such as stack offsets, variables, and canaries) that may aid in other attacks.
PHP 5.2.1 and earlier versions are reported vulnerable to this issue.
NOTE: This issue is closely related to the one described in BID 22851 (PHP 5 Substr_Compare Integer Overflow Vulnerability).
PHP 5 is prone to an integer-overflow vulnerability because it fails to ensure that integer values aren't overrun.
A local attacker can exploit this vulnerability to obtain sensitive information (such as stack offsets, variables, and canaries) that may aid in other attacks.
PHP 5.2.1 and earlier versions are reported vulnerable to this issue.
NOTE: This issue is closely related to the one described in BID 22851 (PHP 5 Substr_Compare Integer Overflow Vulnerability).
Exploit / POC
PHP 5 Substr_Count Integer Overflow Vulnerability
Currently we are not aware of any exploits for this issue. If you feel we are in error or if you are aware of more recent information, please mail us at: [email protected].
Currently we are not aware of any exploits for this issue. If you feel we are in error or if you are aware of more recent information, please mail us at: [email protected].
Solution / Fix
PHP 5 Substr_Count Integer Overflow Vulnerability
Solution:
The vendor released an update to address this issue. Please see the references for more information.
PHP PHP 5.2
PHP PHP 5.0 candidate 2
PHP PHP 5.0 candidate 3
PHP PHP 5.0 candidate 1
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
PHP PHP 5.1.1
PHP PHP 5.1.2
PHP PHP 5.1.3 -RC1
PHP PHP 5.1.3
PHP PHP 5.1.4
PHP PHP 5.1.5
PHP PHP 5.1.6
PHP PHP 5.2.1
Solution:
The vendor released an update to address this issue. Please see the references for more information.
PHP PHP 5.2
-
PHP php-5.2.2.tar.gz
http://www.php.net/get/php-5.2.2.tar.gz/from/a/mirror
PHP PHP 5.0 candidate 2
-
PHP php-5.2.2.tar.gz
http://www.php.net/get/php-5.2.2.tar.gz/from/a/mirror
PHP PHP 5.0 candidate 3
-
PHP php-5.2.2.tar.gz
http://www.php.net/get/php-5.2.2.tar.gz/from/a/mirror
PHP PHP 5.0 candidate 1
-
PHP php-5.2.2.tar.gz
http://www.php.net/get/php-5.2.2.tar.gz/from/a/mirror
PHP PHP 5.0.1
-
PHP php-5.2.2.tar.gz
http://www.php.net/get/php-5.2.2.tar.gz/from/a/mirror
PHP PHP 5.0.2
-
PHP php-5.2.2.tar.gz
http://www.php.net/get/php-5.2.2.tar.gz/from/a/mirror
PHP PHP 5.0.3
-
PHP php-5.2.2.tar.gz
http://www.php.net/get/php-5.2.2.tar.gz/from/a/mirror
PHP PHP 5.0.4
-
PHP php-5.2.2.tar.gz
http://www.php.net/get/php-5.2.2.tar.gz/from/a/mirror
PHP PHP 5.0.5
-
PHP php-5.2.2.tar.gz
http://www.php.net/get/php-5.2.2.tar.gz/from/a/mirror
PHP PHP 5.1
-
PHP php-5.2.2.tar.gz
http://www.php.net/get/php-5.2.2.tar.gz/from/a/mirror
PHP PHP 5.1.1
-
PHP php-5.2.2.tar.gz
http://www.php.net/get/php-5.2.2.tar.gz/from/a/mirror
PHP PHP 5.1.2
-
PHP php-5.2.2.tar.gz
http://www.php.net/get/php-5.2.2.tar.gz/from/a/mirror
PHP PHP 5.1.3 -RC1
-
PHP php-5.2.2.tar.gz
http://www.php.net/get/php-5.2.2.tar.gz/from/a/mirror
PHP PHP 5.1.3
-
PHP php-5.2.2.tar.gz
http://www.php.net/get/php-5.2.2.tar.gz/from/a/mirror
PHP PHP 5.1.4
-
PHP php-5.2.2.tar.gz
http://www.php.net/get/php-5.2.2.tar.gz/from/a/mirror
PHP PHP 5.1.5
-
PHP php-5.2.2.tar.gz
http://www.php.net/get/php-5.2.2.tar.gz/from/a/mirror
PHP PHP 5.1.6
-
PHP php-5.2.2.tar.gz
http://www.php.net/get/php-5.2.2.tar.gz/from/a/mirror
PHP PHP 5.2.1
-
PHP php-5.2.2.tar.gz
http://www.php.net/get/php-5.2.2.tar.gz/from/a/mirror
References
PHP 5 Substr_Count Integer Overflow Vulnerability
References:
References:
- PHP Homepage (PHP)
- PHP Security Fixes 03-May-2007 (PHP)
- MOPB-14-2007:PHP substr_compare() Information Leak Vulnerability (PHP-security)