Bug 1305559 - php: Type confusion vulnerability in WDDX packet deserialization
php: Type confusion vulnerability in WDDX packet deserialization
Status: CLOSED WONTFIX
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20160111,repor...
: Security
Depends On: 1305565
Blocks: 1305564
  Show dependency treegraph
 
Reported: 2016-02-08 10:06 EST by Adam Mariš
Modified: 2017-09-07 17:04 EDT (History)
12 users (show)

See Also:
Fixed In Version: php 5.6.18, php 5.5.32
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-09-07 17:04:22 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Adam Mariš 2016-02-08 10:06:17 EST
A type confusion vulnerability in WDDX packet deserialization was reported.

Upstream bug:

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

Upstream patch:

https://git.php.net/?p=php-src.git;a=commit;h=285cd3417fb61597345b829f5f573707bbdcd484
Comment 1 Adam Mariš 2016-02-08 10:12:45 EST
Created php tracking bugs for this issue:

Affects: fedora-all [bug 1305565]
Comment 2 Tomas Hoger 2017-09-07 17:04:22 EDT
This issue happens when untrusted input is unserialized.  Doing so it documented as being unsafe:

  http://php.net/manual/en/function.wddx-deserialize.php

  Warning
  Do not pass untrusted user input to wddx_deserialize(). Unserialization
  can result in code being loaded and executed due to object instantiation
  and autoloading, and a malicious user may be able to exploit this.

Affected code is part of the WDDX extension.  In Red Hat products, this extension is packaged in the php-xml subpackages.  Systems without php-xml installed can not be affected by this issue.  If system requires one of the other extensions packaged in php-xml packages, but not the WDDX extension, it is possible to prevent PHP from loading the extension by commenting out the following line in the wddx.ini configuration file:

  extension=wddx.so

The configuration file can be found in the php.d configuration directory.  Depending on whether PHP packages from Red Hat Enterprise Linux or Red Hat Software Collections are used, php.d directory can be found in one of the following locations: /etc, /opt/rh/<collection>/root/etc/, or /etc/opt/rh/<collection>/.

Note You need to log in before you can comment on or make changes to this bug.