Better HN
topnewbestaskshowjobs
Log inSign up

Comment

by xpil · 3y ago · 0 comments

"a large database containing more than 30 million Microsoft accounts, emails, and passwords."

A database containing passwords? Why would anyone store passwords in a database is beyond my comprehension.

Comments
gpvos3y ago
However you store them, it is a database. And there's actually nothing wrong with using a relational database for that. (Of course, you don't store passwords, but salts and salted hashes.)
xpil
OP
3y ago
Of course there is nothing wrong with using a relational database. My concern was about storing passwords in it. There is a difference between storing passwords and storing hashes and/or salts.
endisneigh3y ago
Where else should you store the passwords?
ceejayoz3y ago
In general, you don't. You store hashes. Exceptions sometimes apply when it's a credential used to access some other system - for example, Plaid's gonna have to store your bank account password to scrape it - but there you'd at least hope for encryption.

Media coverage tends not to get the distinction right, so it's always hard to tell if the company fucked up or the attacker is exaggerating on early coverage.

T3OU-7363y ago
(Assuming this is what you meant by *but there you'd at least hope for encryption*, but expanding to verify): Even in this case, it seems unreasonable to store the password. Rather, the user's Plaid login should act as a part of multi-token access setup, where Plaid's backend services' tokens can also be used to decrypt the user's credentials in order to authenticate to those other service.

In short: even then, storing plaintext passwords seems... like choosing convenience for security, and that seems very wrong.

poizan423y ago
Nobody said the passwords weren't hashed
ceejayoz3y ago
The article states "the group provided 100 credential pairs". That indicates one of a couple things; a) lying attacker providing old hacked accounts, b) unsalted or weakly salted credentials vulnerable to rainbow tables or brute force or c) plaintext storage.
prepend3y ago
Hashes aren’t passwords. So if they only have hashes, they don’t have passwords.
_Algernon_3y ago
Not at all. You store a salt and the hash(pw+salt).
endisneigh3y ago
that's still "storing the passwords", though. no one said it should be stored in plain text.
SigmundA3y ago
No a one-way hash is not "the password". If you have the hash you can't use it to login or reverse it to a password without brute force comparison which is why you always store a hash with salt using slow hashing algo, and not "the password", this has been best practice for years so a DB breach does not mean the password are compromised.
charcircuit3y ago
Be warned that this makes your authentication system less secure because it caps the maximum entropy of the password to the entropy of the hash function.
poizan423y ago
You need crazy long passwords for that to become the limiting factor. With random printable characters on the keyboard there are a bit less than 7 bits per character (unless a crazy amount of different accents are used). So you need passwords longer than 18 characters to surpass the entropy of even MD5.
gpvos3y ago
What would you suggest instead?
rolph3y ago
on a post-it, under the keyboard its safer there