3 ms·
Except that it's easy (indeed, required for security) to change the nonce for each login request, so you can't just replay the hash.
by SAI_Peregrinus 6y ago
Except that it's easy (indeed, required for security) to change the nonce for each login request, so you can't just replay the hash.
- jarkhen 6y agoThat protects against an attacker reading network traffic. It does not protect against an attacker that has the hashed password from the DB. The only thing you need in order to authenticate at any given time is the hash of (hashed password + nonce). The latter you get for free, at any time, from the server, so you only need to know the hashed password -- not the password itself. Since the hashed password is directly stored in the DB, if you get your hands on that you can authenticate.
- SAI_Peregrinus 6y agoRight. My mistake. I should have thought it through more thoroughly before posting. Hopefully my comment doesn't mislead anyone, I'll try to do better in the future.