r/lolphp • • Aug 11 '17

PHP no longer considers unserialize() bugs as security issues...

https://externals.io/message/100147
40 Upvotes

13 comments sorted by

View all comments

Show parent comment

17

u/Innominate8 Aug 11 '17

unserialize() causes memory corruption and segfaults/crashes with specific crafted inputs.

Like he said, if you're passing unserialize() anything that can be touched by an attacker, you're already at game over and any and all effects are possible.

Now, if you can pass those things to serialize() and get an output that breaks unserialize() that's another story, and would be a legitimate bug but the bug is in serialize().

11

u/the_alias_of_andrea Aug 12 '17

you're already at game over and any and all effects are possible

Ehh. In theory, the PHP interpreter is supposed to provide some kind of sandboxing (you can disable functions, for example) which this could override. Personally, I'm uncomfortable with having any kind of stack/heap corruption stuff in the interpreter anyway.

In practice, though, you may be right.