43 points · by kwdowicz · 18y ago · 130 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.
"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.
2. Never use the same login for 2 websites
The fact this has been upvoted to top position is more worrying than any security worries.
Dude, my brain would explode.
I use the same pwd on about 100 sites, none of which I would really be upset about if it got stolen.
Of course that means if anyone steals my laptop they have all my logins, but that's extremely unlikely.
Of course that means if anyone steals my laptop they have all my logins."
Would have gone down better, I guess.
I call BS to that. Fair enough for websites that use your banking or credit card information, but for the rest? I don't think so.
For irrelevant sites such as Hacker News, Reddit, whatever other minor web 2 site you can think of, you should ALWAYS use the same password. Why fart around with a ridiculous number of passwords for websites that are nothing more than minor daily distractions?
You're also ignoring reputation. Breaking your Facebook account may not be a huge win by itself, but if I can use it to get your 50 Facebook friends to load a Javascript worm, I might have probably 40-50% of their bank passwords. Look what happened with Orkut a few months back.
I don't know how much more load SSL would cause but a good solution would be to just use HTTPS for the login and then redirect back to the HTTP, like Twitter does.
I use the same password here that I use on other sites which aren't very critical and which wouldn't really do me any harm if my account were cracked.
However while that solution will prevent packet sniffing, if you want to prevent phishing attacks you still need to use SSL
Beyond that though, if you're going to implement a crypto protocol, don't make it SRP. It is much harder to do SRP securely than it is to do simple message digests.
[1] I've read your blog before and know that I don't need to tell you this, but the generally community might :-)
At one point I thought this was a big enough problem to write a greasemonkey script hashing passwords clientside for every website. But it just isn't a big interest of mine.
It really is a shame that browsers have such a terrible UI for HTTP auth.
I don't totally agree with this (HTTP digest auth, while silly, is still better than the crazy Javascript hashing schemes), but the logic is, it is difficult to "log out" and manage sessions with HTTP auth.
Speaking as FreeBSD Security Officer: Several of the top security firms provide ratings which reflect the quality of their checklists more than the quality of the security in the systems they're assessing. The FreeBSD security team recently dealt with a case of "if you don't fix this, people using FreeBSD will lose marks on PCI audits" -- and our answer was "screw the auditors, this isn't a security issue and we're not going to send out a bogus security advisory just to keep some idiotic auditors happy".
(You need to send information back and forth because those protocolls are interactive.)
http://img223.imageshack.us/img223/3784/clickpasskf8.png
http://codefromthe70s.org/sslblacklist.asp
If they don't care about the security of their web interface, do you really want to entrust them with your passwords ?
If you use the salt that you're using in your database as the token to concatenate instead of a random token, an attacker will only be able to use the data they capture to login on your site as opposed to all the sites the user has used the same password on. That sounds like it could work, but it might have security implications I haven't thought through yet.
This protects against both replay and rainbow attacks.
salt = randomstring(4)
hashed_pw = salt + ':' + sha1(salt + password)
store(hashed_pw, login_name)
How do you then verify this? In other words, how do you send the user the salt and the nonce if you don't know who the user is ahead of time?http://www.matasano.com/log/958/enough-with-the-rainbow-tabl...
This is the kind of place I would have hoped people would know this sort of thing. It's kind of depressing to see such a stupid article at number 1.