Bug #75054 [Opn]: A Denial of Service Vulnerability was found when performing deserialization
| From: | nikic@php.net | Date: | Thu, 10 Aug 2017 09:00:15 +0000 |
| Subject: | Bug #75054 [Opn]: A Denial of Service Vulnerability was found when performing deserialization | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-210577@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75054&edit=1
ID: 75054
Updated by: nikic@php.net
Reported by: varsleak at gmail dot com
Summary: A Denial of Service Vulnerability was found when
performing deserialization
Status: Open
Type: Bug
Package: Variables related
Operating System: Ubuntu 16.40 x64
PHP Version: 7.1.8
Block user comment: N
Private report: N
New Comment:
For context, please see this recent discussion on the PHP internals list: https://externals.io/message/100147
The situation is basically that given the current serialization format, it is unlikely that
unserialize() will EVER be suitable for use on untrusted input. There are some very fundamental
issues which are getting papered over as new bug reports come in, but the real issue is in the
format itself -- without changing the format, it appears to be impossible to make unserialize()
fully secure.
This is why there is a big red box in the unserialize() documentation: http://php.net/unserialize
Previous Comments:
------------------------------------------------------------------------
[2017-08-10 07:42:56] l dot wei at ntu dot edu dot sg
Simply dismiss these issues by suggesting a "best practice" does not seem to improve the
situation in systems built on the unsafe deserialization APIs. If deprecating them is too costly for
compatibility, maybe fixing such issues as soon as they get reported is the best way to go ? Just
two cents.
------------------------------------------------------------------------
[2017-08-10 06:29:27] spam2 at rhsoft dot net
you simply MUST NOT use serialize / unserialize for data coming from outside, use json_encode() and
json_decode() and sanitize input data anyways
------------------------------------------------------------------------
[2017-08-10 02:46:51] yohgaki@php.net
Users are supposed to do something like this by themselves.
https://wiki.php.net/rfc/secure_serialization
------------------------------------------------------------------------
[2017-08-10 02:14:43] varsleak at gmail dot com
What kind of input is considered trust?
Are ordinary php code or other applications (like WAF) doing checkup?
These input data hackers are able to control,
I do not understand why the issus can not be considered a security issue.
------------------------------------------------------------------------
[2017-08-09 15:00:05] cmb@php.net
Unserialize must not be used on untrusted input. We don't consider
issues in unserialize as security vulnerabilities.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=75054
--
Edit this bug report at https://bugs.php.net/bug.php?id=75054&edit=1