PHP Shared Memory Module Offset Memory Corruption Vulnerability
BID:12045
Info
PHP Shared Memory Module Offset Memory Corruption Vulnerability
| Bugtraq ID: | 12045 |
| Class: | Design Error |
| CVE: | |
| Remote: | No |
| Local: | Yes |
| Published: | Dec 20 2004 12:00AM |
| Updated: | Dec 20 2004 12:00AM |
| Credit: | Discovery of this vulnerability is credited to Stefano Di Paola <[email protected]>. |
| Vulnerable: |
Ubuntu Ubuntu Linux 4.1 ppc Ubuntu Ubuntu Linux 4.1 ia64 Ubuntu Ubuntu Linux 4.1 ia32 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.0 .0 PHP PHP 4.3.9 PHP PHP 4.3.8 PHP PHP 4.3.7 PHP PHP 4.3.6 PHP PHP 4.3.5 PHP PHP 4.3.4 PHP PHP 4.3.3 PHP PHP 4.3.2 PHP PHP 4.3.1 PHP PHP 4.3 PHP PHP 4.2.3 PHP PHP 4.2.2 PHP PHP 4.2.1 PHP PHP 4.2 .0 PHP PHP 4.2 -dev PHP PHP 4.1.2 PHP PHP 4.1.1 PHP PHP 4.1 .0 PHP PHP 4.0.7 RC3 PHP PHP 4.0.7 RC2 PHP PHP 4.0.7 RC1 PHP PHP 4.0.7 PHP PHP 4.0.6 PHP PHP 4.0.5 PHP PHP 4.0.4 PHP PHP 4.0.3 pl1 PHP PHP 4.0.3 PHP PHP 4.0.2 PHP PHP 4.0.1 pl2 PHP PHP 4.0.1 pl1 PHP PHP 4.0.1 PHP PHP 4.0 0 Apple Mac OS X Server 10.3.7 Apple Mac OS X Server 10.3.6 Apple Mac OS X Server 10.3.5 Apple Mac OS X Server 10.3.4 Apple Mac OS X Server 10.3.3 Apple Mac OS X Server 10.3.2 Apple Mac OS X Server 10.3.1 Apple Mac OS X Server 10.3 Apple Mac OS X Server 10.2.8 Apple Mac OS X Server 10.2.7 Apple Mac OS X Server 10.2.6 Apple Mac OS X Server 10.2.5 Apple Mac OS X Server 10.2.4 Apple Mac OS X Server 10.2.3 Apple Mac OS X Server 10.2.2 Apple Mac OS X Server 10.2.1 Apple Mac OS X Server 10.2 Apple Mac OS X 10.3.7 Apple Mac OS X 10.3.6 Apple Mac OS X 10.3.5 Apple Mac OS X 10.3.4 Apple Mac OS X 10.3.3 Apple Mac OS X 10.3.2 Apple Mac OS X 10.3.1 Apple Mac OS X 10.3 Apple Mac OS X 10.2.8 Apple Mac OS X 10.2.7 Apple Mac OS X 10.2.6 Apple Mac OS X 10.2.5 Apple Mac OS X 10.2.4 Apple Mac OS X 10.2.3 Apple Mac OS X 10.2.2 Apple Mac OS X 10.2.1 Apple Mac OS X 10.2 |
| Not Vulnerable: |
PHP PHP 5.0.3 PHP PHP 4.3.10 Apple Mac OS X Server 10.3.8 Apple Mac OS X 10.3.8 |
Discussion
PHP Shared Memory Module Offset Memory Corruption Vulnerability
PHP shared memory module (shmop) is reported prone to an integer handling vulnerability. The issue exists in the PHP_FUNCTION(shmop_write) function and is as a result of a lack of sufficient sanitization performed on 'offset' data.
This vulnerability may be exploited to make an almost arbitrary write into process memory. It is reported that the vulnerability may be leveraged to disable PHP 'safe mode', this may result in further compromise in a shared-server environment.
PHP shared memory module (shmop) is reported prone to an integer handling vulnerability. The issue exists in the PHP_FUNCTION(shmop_write) function and is as a result of a lack of sufficient sanitization performed on 'offset' data.
This vulnerability may be exploited to make an almost arbitrary write into process memory. It is reported that the vulnerability may be leveraged to disable PHP 'safe mode', this may result in further compromise in a shared-server environment.
Exploit / POC
PHP Shared Memory Module Offset Memory Corruption Vulnerability
The following exploit is available:
The following exploit is available:
Solution / Fix
PHP Shared Memory Module Offset Memory Corruption Vulnerability
Solution:
It is reported that this vulnerability is addressed in PHP 5.0.3 and 4.3.10. This is not confirmed.
Ubuntu Linux has released advisory USN-66-1 to address this, and other issues. Please see the referenced advisory for further information.
Apple Computers has released advisory APPLE-SA-2005-01-25 along with a security update dealing with this and other issues. Please see the referenced advisory for more information.
Apple Computers has released Mac OS X version 10.3.8 dealing with this issue. This upgrade includes the security patches shipped with the referenced security update.
Apple Mac OS X 10.2.8
Apple Mac OS X Server 10.2.8
Apple Mac OS X Server 10.3.7
Apple Mac OS X 10.3.7
PHP PHP 4.3.8
Solution:
It is reported that this vulnerability is addressed in PHP 5.0.3 and 4.3.10. This is not confirmed.
Ubuntu Linux has released advisory USN-66-1 to address this, and other issues. Please see the referenced advisory for further information.
Apple Computers has released advisory APPLE-SA-2005-01-25 along with a security update dealing with this and other issues. Please see the referenced advisory for more information.
Apple Computers has released Mac OS X version 10.3.8 dealing with this issue. This upgrade includes the security patches shipped with the referenced security update.
Apple Mac OS X 10.2.8
-
Apple Security Update 2005-001 (Mac OS X 10.2.8 Client) 1.0
http://www.apple.com/support/downloads/securityupdate2005001macosx1028 client.html
Apple Mac OS X Server 10.2.8
-
Apple Security Update 2005-001 (Mac OS X 10.2.8 Server) 1.0
http://www.apple.com/support/downloads/securityupdate2005001macosx1028 server.html
Apple Mac OS X Server 10.3.7
-
Apple Security Update 2005-001 (Mac OS X 10.3.7 Server) 1.0
http://www.apple.com/support/downloads/securityupdate2005001macosx1037 server.html -
Apple Mac OS X 10.3.8 upgrade
http://wsidecar.apple.com/cgi-bin/nph-reg3rdpty1.pl/product=05368&plat form=osx&method=sa/MacOSXUpdate10.3.8.dmg
Apple Mac OS X 10.3.7
-
Apple Security Update 2005-001 (Mac OS X 10.3.7 Client) 1.0
http://www.apple.com/support/downloads/securityupdate2005001macosx1037 client.html -
Apple Mac OS X 10.3.8 upgrade
http://wsidecar.apple.com/cgi-bin/nph-reg3rdpty1.pl/product=05368&plat form=osx&method=sa/MacOSXUpdate10.3.8.dmg
PHP PHP 4.3.8
-
Ubuntu libapache2-mod-php4_4.3.8-3ubuntu7.3_amd64.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/main/p/php4/libapache2-mod-php4 _4.3.8-3ubuntu7.3_amd64.deb -
Ubuntu libapache2-mod-php4_4.3.8-3ubuntu7.3_i386.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/main/p/php4/libapache2-mod-php4 _4.3.8-3ubuntu7.3_i386.deb -
Ubuntu libapache2-mod-php4_4.3.8-3ubuntu7.3_powerpc.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/main/p/php4/libapache2-mod-php4 _4.3.8-3ubuntu7.3_powerpc.deb -
Ubuntu php4-cgi_4.3.8-3ubuntu7.3_amd64.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/main/p/php4/php4-cgi_4.3.8-3ubu ntu7.3_amd64.deb -
Ubuntu php4-cgi_4.3.8-3ubuntu7.3_i386.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/main/p/php4/php4-cgi_4.3.8-3ubu ntu7.3_i386.deb -
Ubuntu php4-cgi_4.3.8-3ubuntu7.3_powerpc.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/main/p/php4/php4-cgi_4.3.8-3ubu ntu7.3_powerpc.deb -
Ubuntu php4-curl_4.3.8-3ubuntu7.3_amd64.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-curl_4.3.8 -3ubuntu7.3_amd64.deb -
Ubuntu php4-curl_4.3.8-3ubuntu7.3_i386.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-curl_4.3.8 -3ubuntu7.3_i386.deb -
Ubuntu php4-curl_4.3.8-3ubuntu7.3_powerpc.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-curl_4.3.8 -3ubuntu7.3_powerpc.deb -
Ubuntu php4-dev_4.3.8-3ubuntu7.3_all.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/main/p/php4/php4-dev_4.3.8-3ubu ntu7.3_all.deb -
Ubuntu php4-domxml_4.3.8-3ubuntu7.3_amd64.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-domxml_4.3 .8-3ubuntu7.3_amd64.deb -
Ubuntu php4-domxml_4.3.8-3ubuntu7.3_i386.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-domxml_4.3 .8-3ubuntu7.3_i386.deb -
Ubuntu php4-domxml_4.3.8-3ubuntu7.3_powerpc.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-domxml_4.3 .8-3ubuntu7.3_powerpc.deb -
Ubuntu php4-gd_4.3.8-3ubuntu7.3_amd64.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-gd_4.3.8-3 ubuntu7.3_amd64.deb -
Ubuntu php4-gd_4.3.8-3ubuntu7.3_i386.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-gd_4.3.8-3 ubuntu7.3_i386.deb -
Ubuntu php4-gd_4.3.8-3ubuntu7.3_powerpc.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-gd_4.3.8-3 ubuntu7.3_powerpc.deb -
Ubuntu php4-ldap_4.3.8-3ubuntu7.3_amd64.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-ldap_4.3.8 -3ubuntu7.3_amd64.deb -
Ubuntu php4-ldap_4.3.8-3ubuntu7.3_i386.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-ldap_4.3.8 -3ubuntu7.3_i386.deb -
Ubuntu php4-ldap_4.3.8-3ubuntu7.3_powerpc.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-ldap_4.3.8 -3ubuntu7.3_powerpc.deb -
Ubuntu php4-mcal_4.3.8-3ubuntu7.3_amd64.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-mcal_4.3.8 -3ubuntu7.3_amd64.deb -
Ubuntu php4-mcal_4.3.8-3ubuntu7.3_i386.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-mcal_4.3.8 -3ubuntu7.3_i386.deb -
Ubuntu php4-mcal_4.3.8-3ubuntu7.3_powerpc.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-mcal_4.3.8 -3ubuntu7.3_powerpc.deb -
Ubuntu php4-mhash_4.3.8-3ubuntu7.3_amd64.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-mhash_4.3. 8-3ubuntu7.3_amd64.deb -
Ubuntu php4-mhash_4.3.8-3ubuntu7.3_i386.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-mhash_4.3. 8-3ubuntu7.3_i386.deb -
Ubuntu php4-mhash_4.3.8-3ubuntu7.3_powerpc.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-mhash_4.3. 8-3ubuntu7.3_powerpc.deb -
Ubuntu php4-mysql_4.3.8-3ubuntu7.3_amd64.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-mysql_4.3. 8-3ubuntu7.3_amd64.deb -
Ubuntu php4-mysql_4.3.8-3ubuntu7.3_i386.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-mysql_4.3. 8-3ubuntu7.3_i386.deb -
Ubuntu php4-mysql_4.3.8-3ubuntu7.3_powerpc.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-mysql_4.3. 8-3ubuntu7.3_powerpc.deb -
Ubuntu php4-odbc_4.3.8-3ubuntu7.3_amd64.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-odbc_4.3.8 -3ubuntu7.3_amd64.deb -
Ubuntu php4-odbc_4.3.8-3ubuntu7.3_i386.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-odbc_4.3.8 -3ubuntu7.3_i386.deb -
Ubuntu php4-odbc_4.3.8-3ubuntu7.3_powerpc.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-odbc_4.3.8 -3ubuntu7.3_powerpc.deb -
Ubuntu php4-pear_4.3.8-3ubuntu7.3_all.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-pear_4.3.8 -3ubuntu7.3_all.deb -
Ubuntu php4-recode_4.3.8-3ubuntu7.3_amd64.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-recode_4.3 .8-3ubuntu7.3_amd64.deb -
Ubuntu php4-recode_4.3.8-3ubuntu7.3_i386.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-recode_4.3 .8-3ubuntu7.3_i386.deb -
Ubuntu php4-recode_4.3.8-3ubuntu7.3_powerpc.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-recode_4.3 .8-3ubuntu7.3_powerpc.deb -
Ubuntu php4-snmp_4.3.8-3ubuntu7.3_amd64.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-snmp_4.3.8 -3ubuntu7.3_amd64.deb -
Ubuntu php4-snmp_4.3.8-3ubuntu7.3_i386.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-snmp_4.3.8 -3ubuntu7.3_i386.deb -
Ubuntu php4-snmp_4.3.8-3ubuntu7.3_powerpc.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-snmp_4.3.8 -3ubuntu7.3_powerpc.deb -
Ubuntu php4-sybase_4.3.8-3ubuntu7.3_amd64.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-sybase_4.3 .8-3ubuntu7.3_amd64.deb -
Ubuntu php4-sybase_4.3.8-3ubuntu7.3_i386.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-sybase_4.3 .8-3ubuntu7.3_i386.deb -
Ubuntu php4-sybase_4.3.8-3ubuntu7.3_powerpc.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-sybase_4.3 .8-3ubuntu7.3_powerpc.deb -
Ubuntu php4-xslt_4.3.8-3ubuntu7.3_amd64.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-xslt_4.3.8 -3ubuntu7.3_amd64.deb -
Ubuntu php4-xslt_4.3.8-3ubuntu7.3_i386.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-xslt_4.3.8 -3ubuntu7.3_i386.deb -
Ubuntu php4-xslt_4.3.8-3ubuntu7.3_powerpc.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4-xslt_4.3.8 -3ubuntu7.3_powerpc.deb -
Ubuntu php4_4.3.8-3ubuntu7.3_amd64.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4_4.3.8-3ubu ntu7.3_amd64.deb -
Ubuntu php4_4.3.8-3ubuntu7.3_i386.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4_4.3.8-3ubu ntu7.3_i386.deb -
Ubuntu php4_4.3.8-3ubuntu7.3_powerpc.deb
Ubuntu 4.10 (Warty Warthog)
http://security.ubuntu.com/ubuntu/pool/universe/p/php4/php4_4.3.8-3ubu ntu7.3_powerpc.deb
References
PHP Shared Memory Module Offset Memory Corruption Vulnerability
References:
References:
- PHP 4 ChangeLog - Version 4.3.10 (PHP)
- PHP 5 ChangeLog - Version 5.0.3 (PHP)
- PHP Homepage (PHP)
- PHP shmop.c module permits write of arbitrary memory. (Stefano Di Paola
)