4 ms·
Laravel cookie forgery, decryption, and RCE
- tptacek 13y agoThis is going to sound like empty language-war rhetoric, but: PHP might be the worst mainstream language in which to implement crypto. A crappy type system is one thing, but an unpredictable type system is much worse.
- eksith 13y agoThe enemy of any crypto is naïve assumption. That's not unique to PHP, but I agree, the type system can make it worse.
- cbg0 13y agoOnly sites which have error reporting enabled are vulnerable, so no need to panic unless you're displaying errors in production.
- iWKtMK 13y agoAll sites were vulnerable to authenticating as other users or tampering with ciphertexts. Error reporting enables the RCE. However, I still hope that nobody is vulnerable or panicking since this was reported and fixed last year.
- laravel 13y agoThis bug was publicly disclosed and fixed over a year ago.
- danpalmer 13y agoWas that disclosed by MWR? It might just be delayed publication on their blog.
- adamors 13y agoAs usual, HN only cares about PHP when there's some FUD to spread. This is an old bug that was made public and fixed over a year ago [0]. [0] http://www.reddit.com/r/PHP/comments/2332gq/laravel_cookie_forgery_decryption_and_rce/cgsysne http://www.reddit.com/r/PHP/comments/2332gq/laravel_cookie_f...
- krapp 13y agoI didn't intend to spread FUD when I posted this - I wasn't aware the equality check was also fixed. I use Laravel in a lot of projects and only saw it posted elsewhere today. re the downvotes: fair enough I guess.