Wildest Dreams Part 2
The opener is back for another round of fun. Enjoy http://chals.ctf.sg:40401 author: Gladiator
Taking a look at the source, we see that we have to attack the following PHP code:
We are essentially looking for two strings whose MD5 hashes are "equal" to each other. In PHP, ==
(as opposed to ===
) means that we are using loose comparison. In particular, when a string starts with 0e...
, PHP will treat it as a float with value 0.0 (following scientific notation).
The result of this is that there are "magic hashes" that are considered equal to each other, and nice lists of strings that result in these magic hashes.
Using two of these strings with length 15 or more, we can solve this challenge.
GET /1989.php?i1=hello14916008992&i2=hello14943865304 HTTP/1.1
The flag is CTFSG{you_see_me_in_h1nds1ght_tangled_up_with_you_all_night}
Last updated