3 ms·
Right, but if you steal the client-hash you have the user's password for this service. If you steal their plaintext password you have their password for every s
by Spivak 7y ago
Right, but if you steal the client-hash you have the user's password for this service. If you steal their plaintext password you have their password for every service.
This measure is to limit the blast radius of a compromised password given that people reuse passwords.
- jedberg 7y agoNo, if you have the salt and the client side hash then you do a dictionary attack and you have their plaintext password, the one they presumably use on multiple sites. All you've done is move your attack from the server to the client. It's the same attack on both ends.
- Spivak 7y agoThis doesn't do anything to make a weak password stronger, it makes a strong password resilient to being compromised over the wire or by an errant console.log(http_request) on the server. If the password is so weak that you can just invert the hash then there's not much that can help you.
- jedberg 7y agoIf they're on the server seeing your console.log, then they can just change the javascript to stop hashing the passwords on the client side.