Bug 1315344 (CVE-2016-3185)

Summary: CVE-2016-3185 php: Type confusion vulnerability in make_http_soap_request()
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: abhgupta, dmcphers, fedora, jialiu, jokerman, jorton, kseifried, lmeyer, mmaslano, mmccomas, rcollet, sardella, tiwillia, webstack-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: php 7.0.4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-16 11:19:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1315347    
Bug Blocks: 1315348    

Description Adam Mariš 2016-03-07 14:04:12 UTC
It was found that due to an insufficient validation of the cookies field when making SOAP http request through https://github.com/php/php-src/blob/master/ext/soap/php_http.c#L835 , there is lack of validation of 2nd/3rd elements in cookies array, which results in type confusion when they are no longer string.

Upstream bug:

https://bugs.php.net/bug.php?id=71610

Upstream patch:

https://git.php.net/?p=php-src.git;a=commit;h=eaf4e77190d402ea014207e9a7d5da1a4f3727ba

Comment 1 Adam Mariš 2016-03-07 14:11:23 UTC
Created php tracking bugs for this issue:

Affects: fedora-all [bug 1315347]

Comment 2 Andrej Nemec 2016-03-17 08:56:54 UTC
CVE assignment:

http://seclists.org/oss-sec/2016/q1/669

Comment 3 Tomas Hoger 2016-06-16 11:19:54 UTC
This issue is a sub-set of issues under CVE-2015-8835 (bug 1323074).  It seems the fix for that issue was not properly applied to PHP 7, hence the issue was re-reported there, but was already fixed in PHP 5 versions at the time.

See bug 1323074 comment 1 for more info on the original issue.

*** This bug has been marked as a duplicate of bug 1323074 ***