3 ms·
they gave people the ability to check any individual password against the online Pwned Passwords service What could possibly go wrong? This works by locally h
by Animats 8y ago
they gave people the ability to check any individual password against the online Pwned Passwords service
What could possibly go wrong?
This works by locally hashing your password, then sending only the first 5 hex characters of the hash to the server. The server sends back all matching hashes of bad passwords it has on file. Typically this returns a few hundred hits. The local client (probably some piece of Javascript) checks the hits against the password hashes returned. If there's a match, the password is in the database of bad passwords. This supposedly protects the password if communications with the checker are intercepted.
But does it? If an attacker can see those first 5 hex characters, they too can get the list of hashes of matching passwords. There are only a few hundred of them, and they're hashes, not the actual passwords. One of those is the hash of the user's password. Now they know what hashes to try.
An attacker presumably has a big database of likely passwords to try. So they can create a database of hashes locally. The hashing algorithm is known to the client, after all. So now they have a few hundred passwords to try for a break-in. Try those over the next few days, and they're in.
Is it really that bad, or am I misunderstanding something here?
- jxcl 8y agoThe point of a secure password is that it _won't_ be in the list of hashes by the server. The service should prevent the user from using any of the passwords that are matched by the password database.
- 0xdeadbeefbabe 8y agoThat doesn't sound so bad. Real attackers probably try something easier first.
- jandrese 8y agoThe point is if you get a match you deny that password and make the user try again. So this would only give you a list of 100 or so passwords that it couldn't be. Not even a drop in the bucket of the namespace you need to search.
- drexlspivey 8y ago> One of those is the hash of the user's password. Why? Your hash might not be in the list. There are 16^35 hashes starting with these 5 characters.
- deleted 8y ago[deleted]