SecurityTracker.com
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


 


Category:   Application (Generic)  >   PHP Vendors:   PHP Group
PHP SoapClient Type Confusion Flaws Let Remote Users Execute Arbitrary Code
SecurityTracker Alert ID:  1032459
SecurityTracker URL:  http://securitytracker.com/id/1032459
CVE Reference:   CVE-2015-4147, CVE-2015-4148   (Links to External Site)
Date:  Jun 3 2015
Impact:   Execution of arbitrary code via network, User access via network
Fix Available:  Yes  Vendor Confirmed:  Yes  Exploit Included:  Yes  

Description:   Two vulnerabilities were reported in PHP. A remote user can execute arbitrary code on the target system.

A remote user can create specially crafted input that, when processed by the unserialize() function, will trigger a type confusion flaw in the PHP SoapClient __call() function and potentially execute arbitrary code on the target system [CVE-2015-4147].

A remote user can create specially crafted input that, when processed by the unserialize() function, will trigger a type confusion flaw in the PHP SoapClient do_soap_call() function and potentially execute arbitrary code on the target system [CVE-2015-4148].

Andrea Palazzo reported these vulnerabilities.

Impact:   A remote user can execute arbitrary code on the target system.
Solution:   The vendor has issued source code fixes [in March 2015], available at:

http://git.php.net/?p=php-src.git;a=commitdiff;h=0c136a2abd49298b66acb0cad504f0f972f5bfe8

http://git.php.net/?p=php-src.git;a=commitdiff;h=c8eaca013a3922e8383def6158ece2b63f6ec483

Vendor URL:  www.php.net/ (Links to External Site)
Cause:   Access control error
Underlying OS:  Linux (Any), UNIX (Any), Windows (Any)

Message History:   This archive entry has one or more follow-up message(s) listed below.
Jun 4 2015 (Red Hat Issues Fix) PHP SoapClient Type Confusion Flaws Let Remote Users Execute Arbitrary Code
Red Hat has issued a fix for Red Hat Enterprise Linux 6, 6.5, 6.6, and 7.
Jun 4 2015 (Red Hat Issues Fix) PHP SoapClient Type Confusion Flaws Let Remote Users Execute Arbitrary Code
Red Hat has issued a fix for php55 for Red Hat Enterprise Linux 6, 6.5, 6.6, and 7.
Jul 10 2015 (Red Hat Issues Fix) PHP SoapClient Type Confusion Flaws Let Remote Users Execute Arbitrary Code
Red Hat has issued a fix for Red Hat Enterprise Linux 6.



 Source Message Contents

Subject:  [oss-security] Re: CVE Request: PHP SoapClient's __call() type confusion through unserialize()

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> SoapClient's __call() method

> https://bugs.php.net/bug.php?id=69085

Use CVE-2015-4147 for:

  In soap.c:2906

  if (zend_hash_find(Z_OBJPROP_P(this_ptr), "__default_headers",
      sizeof("__default_headers"), (void **) &tmp)==SUCCESS) {
         HashTable *default_headers = Z_ARRVAL_P(*tmp);

  the Z_ARRVAL_P macro is called on __default_headers assuming that it
  is an array without any actual check about it.



Use CVE-2015-4148 for:

  very similiar issue located in do_soap_call() (called by __call(),
  indeed).

  soap.c:2754, in do_soap_call()

  if (call_uri == NULL) {
     call_uri = Z_STRVAL_PP(uri);
  }

  where uri comes from zend_hash_find(Z_OBJPROP_P(this_ptr), "uri",
  sizeof("uri"), (void *)&uri), line 2748.

  If the "uri" field has been previously unserialized as an int, this
  could still result in an info leak whereas the attacker would be able
  to control a str.val field of a zval.

- -- 
CVE assignment team, MITRE CVE Numbering Authority
M/S M300
202 Burlington Road, Bedford, MA 01730 USA
[ PGP key available through http://cve.mitre.org/cve/request_id.html ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (SunOS)

iQEcBAEBAgAGBQJVbC37AAoJEKllVAevmvmsAGAH/0VAsTceI7ulrHeNae0vC1oA
S9oLx+y5HHec8FbcuEpV+ZGT+8CtQWLLsspujjSp6ZFkPcuYgnM3nBsP9cPqrgpv
KJXHhoFfiaFCHIbX+SJxrd7ChHk/CFvqYK21h8PQEz/L16D86pk+wXieSXhkHUJY
E90jG2pHKlJBQk0PCzipc3wQ7IbSrP71jIbxOJJ5f1PdIbeK838G80/XacpIE4Tn
sR6qD+ICRW5OfT/Go1emFE8AngHT9yyAPPmeuc0FrzgumgsCJXdE9idR4cJby076
8w9C/mZ3G0Gwx5DL13s4Z7Q+DEZhwvDrqyh+zcdjz16hj76b1bfWizkfKfKf5vQ=
=jLhj
-----END PGP SIGNATURE-----
 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

This web site uses cookies for web analytics. Learn More

Copyright 2019, SecurityGlobal.net LLC