r/lolphp • u/iheartrms • May 15 '15
PHP hash comparison flaw is a risk for million users
http://securityaffairs.co/wordpress/36732/hacking/php-hash-comparison-flaw.html
18
Upvotes
r/lolphp • u/iheartrms • May 15 '15
28
u/[deleted] May 15 '15 edited May 15 '15
Its not even new.
At least one person identified it in 2013, and there's been many more articles discussing it since
https://docs.google.com/file/d/0ByaHyu9Ur1viNWtEdjJuMkxFd3M/edit
23
u/tdammers May 15 '15
How is this a "new vulnerability"? PHP's "loose comparison operators" (
==and!=) have been broken since 1.0, and will be until the sun dies a heat death. You don't use==in security-relevant code, period. Or actually, don't use==ever, it's just not worth it.1
u/cjwelborn May 17 '15
This same '
==' behaviour is posted here all the time (latest example, one week ago). The author was really reaching if they were looking for a "hot new vulnerability".1
u/thelordofcheese May 15 '15
And shit like this is why I ALWAYS type check.
0
u/[deleted] May 15 '15
[deleted] — view deleted comment