Live data from Hacker News

Twitter Hacker Says Admin Password Was 'Happiness'

blog.wired.com

31–40 of 44 posts

Re: Twitter Hacker Says Admin Password Was 'Happiness'

#31
post #13

Earlier quoted context omitted.

You could just throw recent login attempts into a table, but that might get big quickly.

or memcachedb, or just use mollom.com

didn't realize an alternative to akismet existed... quick question : how come mollom says 78% of comments are spam, but akismet says 85%?

Re: Twitter Hacker Says Admin Password Was 'Happiness'

#32
post #7

This does bring up a good tech question -- how do you prevent people from doing a rapid password attack? Anyone have an article or some ideas on how this could be done? Is limiting attempts the simplest way? Even if you do limits, aren't these session-based? I'm guessing a cracker isn't going to respect sessions.

Presume that you have some sort of table with userIDs and password hashes (with salt). You should also consider adding some columns like: 1 - LastLoginAttemptedDateTime 2 - LastLoginAttemptedIPAddress 3 - LastSuccessfulLoginDateTime 4 - LastSuccessfulLoginIPAddress 5 - MustChagePasswordAtNextLogin - a boolean flag to indicate they must change their password. You'll set that flag when they're recovering a password, or…

[deleted]

Re: Twitter Hacker Says Admin Password Was 'Happiness'

#34
post #22

Earlier quoted context omitted.

Limiting attempts is a great way to allow people to remotely execute a DoS on your admin site. They can keep you out for awhile before you block them. If your company has a password lockout policy, keep guessing the CEO or CIOs password constantly for a few days and the policy will be changed pretty quickly. The other suggestions are good.

You don't lockout the account, you lockout the attacking client, typically by IP address. It still allows the attacked accounts access from non-attacking IP addresses.

and if the attacking client is someone sitting on the corporate internet? way to block the entire corp from logging in ...

Re: Twitter Hacker Says Admin Password Was 'Happiness'

#35

Earlier quoted context omitted.

You don't lockout the account, you lockout the attacking client, typically by IP address. It still allows the attacked accounts access from non-attacking IP addresses.

and if the attacking client is someone sitting on the corporate internet? way to block the entire corp from logging in ...

It seems like the three main strategies are locking the account, blocking the IP, or forcing a password reset. What if instead, the account login name automatically got changed after a few missed attempts but the password remained the same. That would get around the DoS problem and also the corporate IP / AOL problem.

Re: Twitter Hacker Says Admin Password Was 'Happiness'

#36

Earlier quoted context omitted.

and if the attacking client is someone sitting on the corporate internet? way to block the entire corp from logging in ...

It seems like the three main strategies are locking the account, blocking the IP, or forcing a password reset. What if instead, the account login name automatically got changed after a few missed attempts but the password remained the same. That would get around the DoS problem and also the corporate IP / AOL problem.

I think rate limiting is a better option. If you only allow one log in attempt per X seconds, it becomes much harder to do a dictionary attack in a reasonable amount of time.

Re: Twitter Hacker Says Admin Password Was 'Happiness'

#38
post #28
post #2

He also realized he hadn't used a proxy to hide his IP address, potentially making him traceable. He didn't think the intrusion was important draw for law-enforcement attention, and "didn't think it would make headlines. I don't understand how he thought hi-jacking Obama, Britney and Fox News twitter accounts wouldn't make headlines.

I don't understand how he thought hi-jacking Obama, Britney and Fox News twitter accounts wouldn't make headlines. He was hijacking a random account on some totally unknown site called twitter. I know this is hard to grasp outside the valley, but most people have not ever heard about twitter and will probably assume it's about as important to the internet as zombo.com.

Actually CNN mentions Twitter quite often and especially during the elections a lot of people started hearing of Twitter way outside of the valley. If my parents learned about Twitter from watching TV I assume it's a safe bet that many other people have as well.

Re: Twitter Hacker Says Admin Password Was 'Happiness'

#39
post #7

This does bring up a good tech question -- how do you prevent people from doing a rapid password attack? Anyone have an article or some ideas on how this could be done? Is limiting attempts the simplest way? Even if you do limits, aren't these session-based? I'm guessing a cracker isn't going to respect sessions.

Presume that you have some sort of table with userIDs and password hashes (with salt). You should also consider adding some columns like: 1 - LastLoginAttemptedDateTime 2 - LastLoginAttemptedIPAddress 3 - LastSuccessfulLoginDateTime 4 - LastSuccessfulLoginIPAddress 5 - MustChagePasswordAtNextLogin - a boolean flag to indicate they must change their password. You'll set that flag when they're recovering a password, or…

I'm sure I'm preaching to the choir, but wow - not using one way hashes is an absolutely terrible security hole.

Re: Twitter Hacker Says Admin Password Was 'Happiness'

#40
post #36

Earlier quoted context omitted.

It seems like the three main strategies are locking the account, blocking the IP, or forcing a password reset. What if instead, the account login name automatically got changed after a few missed attempts but the password remained the same. That would get around the DoS problem and also the corporate IP / AOL problem.

I think rate limiting is a better option. If you only allow one log in attempt per X seconds, it becomes much harder to do a dictionary attack in a reasonable amount of time.

This to me is the way to do it. You can limit it to something pretty large like even or 3 tries, wait ten seconds or something. Basically making it normal speed for a human but waaay slow for a computer is the trick to me. A dictionary attack has to try tens of thousands of words and combinations to crack an account.
Post reply on HN