Skip to content

Instantly share code, notes, and snippets.

@jybaek
Created December 2, 2015 00:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jybaek/9512ef8b7f8c35350dbd to your computer and use it in GitHub Desktop.
Save jybaek/9512ef8b7f8c35350dbd to your computer and use it in GitHub Desktop.
PHP의 오래된 해시 비교 버그
<?php
// 출처 : https://blog.whitehatsec.com/magic-hashes/
if (hash('md5','240610708',false) == '0') {
print "Matched.\n";
}
if ('0e462097431906509019562988736854' == '0') {
print "Matched.\n";
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment