by timo_h · 3y ago · 0 comments
> bcrypt(base64(sha-512(password)))
Pre-hashing the password, in this context, without a salt, is susceptible to hash shucking: https://security.stackexchange.com/questions/234794/is-bcryp...
Instead, use:
bcrypt(base64(sha-512(password + global_salt)))There are both MD5 hashes and SHA-512 hashes lying around, which makes "hash shucking" possible for both of them.