Attack Model
The k-anonymity scheme used by Pwned Passwords sends only a truncated hash prefix, but a malicious server can combine multiple lookups of similar passwords to narrow down and recover a user's original password. This undermines the privacy claim that the server never learns enough to reconstruct the password.
cablej.io
Published on cablej.io
Last year, Troy Hunt and Cloudflare launched the Have I Been Pwned? Pwned Passwords database, which allows searching a database of over 500,000,000 passwords to check if a given password has been compromised in a data breach.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the design assumes each lookup is independent, but users often reuse or slightly modify passwords, so multiple truncated hashes from the same user leak enough information to identify the original password.
Impact
A malicious or compromised lookup server could learn user passwords, especially when users reuse or slightly modify passwords, though the attack requires the server to be malicious and to correlate lookups with user identities.
What the attacker needed
Malicious or compromised lookup server; user reuses or modifies passwords; server can correlate lookups to a user
The fix
Password managers should stop using this k-anonymity model until it is redesigned, or at least warn users that password information is revealed to a third party; client-side checks to avoid sending hashes of similar passwords are being evaluated.
How it was found
- A user sends the first few characters of the hash of a password to the lookup server.
- The server returns all hashes beginning with those characters.
- The user sends hashes of neighbouring (slightly modified) passwords.
- The server compares the returned plaintext lists to find the only neighbouring pair, revealing the original password.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
When you check a password against a breach database, the service only sends the first few characters of a scrambled version of your password (a hash). The idea is that the server cannot tell which password you have. This report shows that if you check several slightly different passwords, the server can compare the results and work out your real password.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.