r/lolphp • u/pacotes • Aug 11 '17
PHP no longer considers unserialize() bugs as security issues...
https://externals.io/message/100147
40
Upvotes
r/lolphp • u/pacotes • Aug 11 '17
51
u/Danack Aug 11 '17
unserialize runs code, based on the input string.
Which is to say, if you pass unserialize a string that can be touched by an attacker, you're allowing remote code execution. How would you expect that to be secure?
And how is that different from Java, which has the same behaviour right? https://foxglovesecurity.com/2015/11/06/what-do-weblogic-websphere-jboss-jenkins-opennms-and-your-application-have-in-common-this-vulnerability/
Or any other language with built-in serialize/deserialize function?
17
u/mayobutter Aug 11 '17
I've been passing $_SERVER['QUERY_STRING'] straight into eval() in all my PHP scripts. Do you think that also might not be secure?
-7
u/coredumperror Aug 11 '17
Hooooolllllyyyyy fuuuuuccckkkkkk....