by cperciva · 18y ago · 0 comments
Is this really news to anyone?
This is fundamentally something everyone needs to understand about computer security-- it's all about creating bigger and harder obstacles (including literal, physical obstacles). You can never absolutely secure something while it exists.
UPDATE: I see from a post further down that you're talking about re-writing the JavaScript in transit. Fair point.
Avoid sending a plaintext password by using HTTPS. It's the easiest way.
However, this is a common security problem that doesn't get enough attention. I would guess the easiest way to crack anyone's bank account is to create some flimsy website that requires users to register. Chances are good they will use the same user/password combo that they would use for their bank. Or you could crack one of the thousands of existing login websites to get passwords, which would be a lot easier than hacking a bank's database.
If I'm writing a minor login website, I'll assign a random password to users. I don't want to be liable if one of my servers is hacked and someone's bank account gets accessed because of it.
What do people out there generally do about this problem? Do you take a similar approach or make additional efforts to secure your servers?
Don't store user passwords in plaintext.
However, it's still possible to do a dictionary attack on the database of hashes ("is the hash of "password" the same as the user's password hash? yes? Bingo!")
(Assuming you are concatenating it with a server-provided random value before the hashing.)
"Most" users have trouble remembering even one password. Rightly or wrongly, it's hard to get the average computer user interested in security.
I'm surprised that the crowd here would even blink when hearing this. cperciva is right with his rhetorical question: this shouldn't be news to anyone, especially hackers.