TYPicalBoss
Last updated
Was this helpful?
Last updated
Was this helpful?
Magic hashes arise due to a quirk in PHP's type juggling, when comparing string hashes to integers. If a string hash starts with "0e" followed by only numbers, PHP interprets this as scientific notation and the hash is treated as a float in comparison operations.
when we use those credentials we are redirected to /flag.php that means that we have bypasses the login using magic hashes
if we follow redirection
This is the classic PHP type-confusion bug with an SHA1 hash that sometimes gets incorrectly referred to as hash collision. There are many repositories onine with string-hash pairs to use, I picked mine from .