Remix.run Logo
▲ mik1998 3 hours ago

Constant time strcmp doesn't fix it. The problem is that the user doesn't have a password at all (the hash is *). But which hashing algorithm is used is encoded in the password. So they pick a different user's hash to not leak the information that there is no password. Alternate solution would be to hardcode a specific algorithm, but that could also leak info in many cases, I guess.

▲sysguest 18 minutes ago | parent [-]

hmm why not make some fake-users just for this stuff?