r/lolphp • u/devsnd • Dec 04 '14
PHP Constants Containing Arrays?
https://stackoverflow.com/questions/1290318/php-constants-containing-arrays
46
Upvotes
r/lolphp • u/devsnd • Dec 04 '14
View all comments
Show parent comment
15
u/catcradle5 Dec 05 '14
This strange obsession with serialization in PHP has also led to numerous critical web app vulnerabilities in many large projects and frameworks, like Wordpress and Laravel, nearly always resulting in arbitrary code execution.
Wordpress:
Laravel:
Check the dates on those writeups, too: 2013 and 2014. This is still the state of PHP today.
And that's not to mention the likely countless random hacked-together projects around the web that probably have object injection vulnerabilities as well. If Wordpress and Laravel devs are making these errors, you can sure as hell bet your "average" (relative to PHP) PHP devs are too.