News for hackers. Stuff that matters.
Re:Twitter urges users to change passwords after computer 'g... by theCricketer on Thursday May 03, 2018 @07:45PM (#16991004)
For people that know more about web security than I: Is there a reason it isn't good practice to hash the password client side so that the backends only ever see the hashed password and there is no chance for such mistakes?
Re:Twitter urges users to change passwords after computer 'g... by zackbloom on Thursday May 03, 2018 @07:46PM (#16991013)
Realize the point of hashing the password is to make sure the thing users send to you is different than the thing you store. You'll still have to hash the hashes again on your end, otherwise anyone who gets accessed to your stored passwords could use them to login.
Re:Twitter urges users to change passwords after computer 'g... by zenhack on Thursday May 03, 2018 @08:08PM (#16991118)
In particular, the point is to make it so that the thing you store can't actually be used to authenticate -- only to verify. So if you're doing it right, the client can't just send the hash, because that wouldn't actually authenticate them.
Re:Twitter urges users to change passwords after computer 'g... by pishpash on Thursday May 03, 2018 @08:05PM (#16991106)
But at least, with salt, it wouldn't be applicable to other sites, just one. Better to just never reuse a password though. Honestly sites should just standardize on a password changing protocol, that will go a long way towards making passwords actually disposable.
Re:Twitter urges users to change passwords after computer 'g... by stingrae on Thursday May 03, 2018 @08:31PM (#16991235)
I don't think a password changing protocol would help make passwords disposable. Making people change passwords often will result in people reusing more passwords.
Re:Twitter urges users to change passwords after computer 'g... by cm2187 on Friday May 04, 2018 @03:51AM (#16992899)
No the point is for password manager. The password manager would regularly reset all the password.... until someone accesses your password manager and locks you out of everything!
Re:Twitter urges users to change passwords after computer 'g... by sjwright on Thursday May 03, 2018 @09:02PM (#16991398)
If by protocol you mean a standard, consistent API that can be used by password managers to update passwords automatically, then I completely agree.
Re:Twitter urges users to change passwords after computer 'g... by cerebellum42 on Thursday May 03, 2018 @08:30PM (#16991230)
Ultimately, what the client sends to the server to get a successful authentication _is_ effectively the password (whether that's reflected in the UI or not). So if you hash the password on the client side but not on the server, it's almost as bad as saving clear text passwords on the server.

You could hash it twice (once on the server once on the client) I suppose, but I'm not entirely sure what the benefit of that would be.

Re:Twitter urges users to change passwords after computer 'g... by pbhjpbhj on Thursday May 03, 2018 @08:47PM (#16991321)
A benefit would be that under the sort of circumstance in the OP, assuming sites salted the input passwords, the hashes would need reversing in order to acquire the password and so reuse issues could be obviated. But I don't think that's really worth it when password managers are around.

I'm imagining we have a system where a client signs, and timestamps, a hash that's sent meaning old hashes wouldn't be accepted and reducing hash "replay" possibilities ... but now I'm amateurishly trying to design a crypto scheme ... never a good idea.

Re:Twitter urges users to change passwords after computer 'g... by deepbreath on Thursday May 03, 2018 @09:10PM (#16991437)
> meaning old hashes wouldn't be accepted and reducing hash "replay" possibilities

How would the server even verify the hash, then?

Re:Twitter urges users to change passwords after computer 'g... by pbhjpbhj on Friday May 04, 2018 @08:32AM (#16994028)
Verify the signature, check the time, use the hash as if it were the password to re-hash and compare with DB?
Re:Twitter urges users to change passwords after computer 'g... by tada-ssola on Thursday May 03, 2018 @07:53PM (#16991040)
I think there is value in that. I would still be sure to hash it a second time on the server.

My guess is that this isn't popular because of the added client side complexity.

I'm also curious if anyone has considered or implemented this idea.

Re:Twitter urges users to change passwords after computer 'g... by tada-ssola on Thursday May 03, 2018 @08:02PM (#16991089)
Ah answered elsewhere, if the client sends the hash and you log the hash then you still have a problem. The user should change passwords.

Although I think this still improves the situation if the password is reused. I.E. I can't use the logged hashed password on other sites.

Re:Twitter urges users to change passwords after computer 'g... by san_at_weblegit on Thursday May 03, 2018 @09:02PM (#16991393)
Assuming that you are referring to browsers as client here. One simple reason is that the client side data can always be manipulated so it does not really makes any difference. It might just give a false sense of safety but does not changes much.

In case we are talking about multi-tier applications where probably LDAP or AD is used to store the credentials then the back end is the one responsible for doing the hashing.

Re:Twitter urges users to change passwords after computer 'g... by nokcha on Thursday May 03, 2018 @08:36PM (#16991262)
I can't think of a good reason not to hash on the client side (in addition to doing a further hash on the server side -- you don't want the hash stored on the server to be able to be used to log in, in case the database of hashed passwords is leaked). The only thing a bit trickier is configuring the work factor so that it can be done in a reasonable amount of time on all devices that the user is likely to use.

Ideally all users would change their passwords to something completely different in the event of a leak. But realistically this just doesn't happen -- some users refuse to change their passwords, and others just change one character. If only the client-side hash is leaked rather than the raw password, you can greatly mitigate the damage by just changing the salt at the next login.

Re:Twitter urges users to change passwords after computer 'g... by tajen on Thursday May 03, 2018 @08:03PM (#16991097)
If you don’t have control on the client, it’s a bad idea: Your suggestion means the password would be the hash itself, and it wouldn’t be necessary for an attacker to know the password.
Re:Twitter urges users to change passwords after computer 'g... by nkozyra on Thursday May 03, 2018 @09:45PM (#16991599)
For one, you expose your hashing strategy. Not that security by obscurity is the goal; but there's no real benefit. Not logging the password is the better mitigation strategy.