News for hackers. Stuff that matters.
Re:Gmail password first character is case insensitive on mob... by cylon13 on Saturday October 09, 2021 @11:44AM (#28810827)
Hashing is done on the server. Hashing on the client would defeat the whole purpose.
Re:Gmail password first character is case insensitive on mob... by phailhaus on Saturday October 09, 2021 @11:54AM (#28810912)
Why? If you hash on the server, then you have to send the password in plaintext to the server.

EDIT: Oh right, salts.

Re:Gmail password first character is case insensitive on mob... by cylon13 on Saturday October 09, 2021 @12:07PM (#28810998)
More importantly if the server just accepts hashed passwords and stores them, then if you got ahold of a hashed password through a leak you could just use it directly to authenticate by modifying the client. The hashed password just becomes the password with one extra client-side step that you can trivially skip.

Salting is more about making it non-obvious which passwords map to which hashes so you can’t easily build tables of hashes for common passwords.

Sending the password to the server in “plain text” is fine over https, it’s a secure channel. Hashing isn’t meant to hide the password on the wire, it’s to prevent anyone with access to the database from learning what the passwords are.

Re:Gmail password first character is case insensitive on mob... by jeltz on Saturday October 09, 2021 @12:54PM (#28811393)
If you do not want to send them in plain text you can use SCRAM.
Re:Gmail password first character is case insensitive on mob... by phailhaus on Saturday October 09, 2021 @12:10PM (#28811026)
Great point, thanks!
Re:Gmail password first character is case insensitive on mob... by juloo on Saturday October 09, 2021 @01:16PM (#28811563)
The server could hash again the hashed password sent by the client. Especially if the client use an insecure hash algorithm (no secret salt for example).

I feel like if the client always hash passwords as soon as it is typed (the javascript never sees the unhashed password), no one would notice. (except some with crazy password rules that would disallow a hash-looking password)

Re:Gmail password first character is case insensitive on mob... by nitrogen on Saturday October 09, 2021 @01:42PM (#28811753)
There are formalized approaches to keeping the server from knowing the password at any time: https://en.m.wikipedia.org/wiki/Password-authenticated_key_a...

SRP is one such system: https://en.m.wikipedia.org/wiki/Secure_Remote_Password_proto...

Re:Gmail password first character is case insensitive on mob... by staticassertion on Saturday October 09, 2021 @05:14PM (#28813366)
The various ZKP approaches are considerably more complex to implement properly vs the trivial approach of a client side hash. There are obvious tradeoffs, of course, but I wouldn't fault someone for an additional hash step on the client.
Re:Gmail password first character is case insensitive on mob... by Mogzol on Saturday October 09, 2021 @05:33PM (#28813493)
Hashing on the client still seems redundant though. In the end, whatever value is sent to the server is essentially plaintext, because it's all an attacker needs to know to authenticate. Whether it's the raw text the user typed or some transformed version of it isn't really relevant.
Re:Gmail password first character is case insensitive on mob... by naniwaduni on Sunday October 10, 2021 @10:20PM (#28823957)
In a world where password reuse is rampant, whether it's the raw text the user typed or a hard-to-reverse transformation on it is absolutely relevant to the user, just not to the service provider.