Slashdot Mirror


How To Hack Twitter's Two-Factor Authentication

An anonymous reader writes with this excerpt from PC Mag's SecurityWatch: "We've pointed out some problems with Twitter's new two-factor authentication. For example, since just one phone number can be associated with an account, Twitter's two-factor authentication won't work for organizations like the Associated Press, The Onion, or The Guardian. They were hacked; they could still be hacked again in the same way. However, security experts indicate that the problem is worse than that, a lot worse."

30 of 58 comments (clear)

  1. worse problem? by mcmonkey · · Score: 4, Insightful

    the problem is worse than that, a lot worse

    Problem? Worse? This is twitter we're talking about right?

    If sending an unencrypted email is like sending a postcard (kids, ask your parents) in pencil, twitter is like a sign you stick in your lawn.

    Anyone can drive by and stick a sign in your lawn, make it look like you support any cause, or take any sign you've put out.

    Now if people put undue weight to those signs, it they swing the markets, then the issue--the problem--is people who don't know the difference between reliable and unreliable sources.

    The problem isn't twitter, it's employees in the media and so-called journalists who'd rather sit on their bum checking their cell phone than go out and do their job.

  2. Twitter + Gmail two-factor authentication by Cutting_Crew · · Score: 1

    My twitter account, like all my others(like banking etc) are tied to my various gmail accounts, which are also two-factor authenticated. So in order to change my password for example on my twitter account, you would need to hack into my twitter account then hack into my gmail account(password + 2-factor auth.) to check the email so that you can change the password.

    I don't know if this makes it more difficult or if i should hold out.

    1. Re:Twitter + Gmail two-factor authentication by Nerdfest · · Score: 2

      ... or perhaps has a business, or works in an industry that uses Twitter frequently, or perhaps even friends.

    2. Re:Twitter + Gmail two-factor authentication by Gaygirlie · · Score: 2

      or perhaps even friends.

      Pfft. Only hipsters got friends. Real nerds do not need such new-fangled humbug -- cold, hard electronics and the soothing back-light of a large LCD should be more than enough!

    3. Re:Twitter + Gmail two-factor authentication by Dishevel · · Score: 2

      Jobless AC wisdom.
      Awesome.

      --
      Why is it so hard to only have politicians for a few years, then have them go away?
    4. Re:Twitter + Gmail two-factor authentication by KGIII · · Score: 1

      Plus the smell of a musty basement and mom screaming down the stairs that dinner is ready.

      --
      "So long and thanks for all the fish."
  3. Re:Thank you by Zerth · · Score: 5, Insightful

    As long as stock market bots and day traders use twitter activity to guide their behavior, I care.

  4. It actually is a big deal by TrumpetPower! · · Score: 4, Interesting

    The two-factor authentication is supposed to protect against a man-in-the-middle attack. The problem is that the verification response from the second factor goes back through the same already-compromised channel.

    Imagine you're a sophisticated vilain in some backwater part of the world. You notice there's an AP reporter there doing some long-term investigative journalism, and said reporter likes to file his reports from a particular internet cafe.

    You hack the cafe's wifi and somehow convince the reporter that his Twitter account has already been hacked -- say, by showing him a tweet in his name of something outrageous. The reporter, panicked, resets his account -- but does so through your fake Twitter authentication. You now capture both his password and the second factor sent through his text message; you now own his Twitter account.

    And you now go ahead and actually send out some outrageous tweet as this particular reporter. Perhaps you pull off your attack while some very important person is visiting, and you report said person's assassination. You know this will crash the markets, and so you short all the proper stocks and make a killing...on the market.

    Is it wise for people to have the trust they do in Twitter? Hell no. Do they have such trust anyway? Yes.

    Which is why this is a big deal.

    Cheers,

    b&

    --
    All but God can prove this sentence true.
    1. Re:It actually is a big deal by Anonymous Coward · · Score: 1

      The two-factor authentication is supposed to protect against a man-in-the-middle attack.

      This is a fundamental misunderstanding of the security model. The attack you describe should be obvious to anyone who took any time to think about it. Two-factor authentication does nothing against man-in-the-middle attacks or phishing attacks, it prevents replay attacks. That is, to attack 2FA, you need to do the attack in real time and don't get another chance to use the credentials latter (unless, as you describe, the attacker is able to change the password, but I've never encountered a system attempting to be at all secure that didn't send an e-mail about password changes).

      The right thing to do would be for Twitter to get out of the way and let users login via OpenID so organizations like AP that need the security can secure their own OpenID servers however they like. Giving every AP reporter a smartcard that acts as their second factor to log into an AP-run OpenID server would be reasonable and protect from that attack, but it's not something Twitter has the ability to organize over a larger userbase.

    2. Re:It actually is a big deal by englishstudent · · Score: 1

      You should be using a VPN over a public wifi network.

      --
      We'll never make it.......oh! we made it! http://www.youtube.com/watch?v=SWf3iJjqYCM&list=FL7kKrE4eTs17mQl7eyvJIOg
    3. Re:It actually is a big deal by Anonymous Coward · · Score: 1

      Mod parent down, for not having a clue what s/he's talking about.

      No, 2FA is not supposed to protect against MitM. Some versions of it might, but 2FA in and of itself isn't required to do that. It is only required that two factors of authentication be used:
      * something you have
      * something you know
      * something you are

      What 2FA *is* supposed to do is (a) provide greater assurance that a person is who they say they are, (b) make it harder to steal credentials, (c) make it easier to detect that credentials are stolen, and (d) address the inherent weaknesses of a particular factor by using a second factor (example: it's hard to know that you'r password has been stolen because you still have it, but your physical token suddenly dissappears and you'll probably notice).

      2FA typically relies on cryptography - encrypted communication channels or challenge response protocols within the authentication protocol - to prevent MitM attacks. True, there is a circular relationship between doing this right to avoid MitM by knowing to whom you are speaking, but you can create a secure communication channel with 1FA. Just look at regular TLS for an example.

  5. Let's ask the IT guy on the movie "Hackers" by jennatalia · · Score: 1

    Everything that happened in there is legit. He probably used some type of defense called Hawk to deal with Twitter hacks.

  6. This cant be stopped. by 140Mandak262Jamuna · · Score: 4, Insightful

    The fundamental problem here is that the user logs into a fake twitter site and gives the login credentials. Then gives the second factor authentication too. This scenario can not be protected against no matter how many factors you use. In fact if I keep logging into a fake google site and keep entering all the credentials how can google stop it?

    --
    sed -e 's/Chuck Norris/Rajnikant/g' joke > fact
    1. Re:This cant be stopped. by Ultracrepidarian · · Score: 1

      BofA was so secure that when I tried to close my account they told me I was the wrong gender and born in the wrong year and refused to speak to me.

  7. A similar solution works very well, no GPS by raymorris · · Score: 3, Insightful

    I'm not familiar with Toopher specifically, but the general idea works quite well. We've been doing it for fifteen years.
    I always post on Slashdot using a small Android phone in Bryan, TX, and my ISP is Suddenlink. I've posted on Slashdot hundreds, if not thousands of times. 20 minutes after I make this post from here in Bryan, if someone claiming to me tries to log in using an iphone in Canada, that's guaranteed to be bogus. That's a simple, obvious, and common example.

    Now take that same general idea and apply fifteen years of R&D and real world experience. You can catch most unauthorized login attempts. If you do any late night surfing, on sites like GirlsGoneWild.com, you may have noticed half of those sites say "protected by Strongbox". They do that because it works.

    1. Re:A similar solution works very well, no GPS by raymorris · · Score: 2

      There are at least two other ways of getting location data leveraging standard protocols (no special software needed on the client.

      > There's GPS and location by wif works well for desktops. IP address is
      > the obvious solution. I believe google us also fingerprinting. IP address and fingerprinting
      > would be just as effective without the location information.

      IP without location isn't nearly as effective, especially with mobiles, but also with desktops. IPs change.
      When you power cycle your cable modem, you'll likely get a different IP address. We can still tell you're in the correct neighborhood, so it probably really is you.

      > No need to outsource this kind of work to a company unless they have some special proprietary algorithm that's better than what you can cook up in-house.

      it's easy to get this wrong. We've specialized in this for 15 years and still continue to make improvements and corrections. Your error above thinking that location doesn't add anything beyond IP address is an example that there is more to it than you might think. There are at least three different actions you need to take for different types of proxies. We've analyzed hundreds of millions of login attempts and still we don't have it down pat, there's more work to do.

  8. Re:Thank you by Anonymous Coward · · Score: 1

    or for there bots to be playing the market in the first place.

  9. Single Factor is Best by VortexCortex · · Score: 4, Funny

    Anything more than a Single Factor is useless for security. Two Factors means it's certainly not a prime!

    1. Re:Single Factor is Best by viperidaenz · · Score: 1

      3 factors are better!

  10. Re:Thank you by Anonymous Coward · · Score: 5, Informative
    http://www.huffingtonpost.com/2013/04/23/twitter-flash-crash_n_3141311.html

    The U.S. stock market crashed momentarily on Tuesday afternoon after the Associated Press' Twitter account was hacked and a hoax tweet was sent out that suggested explosions at the White House had injured President Barack Obama. The Dow Jones Industrial Average dropped about 150 points in a matter of seconds

  11. Idiot proof security by Anonymous Coward · · Score: 1

    "You can't make anything idiot proof because idiots are so ingenious"

  12. TOTP would solve the parallel access problem by kju · · Score: 4, Informative

    Instead of using some custom two-factor authentication which is bound to a specific phone, they should use TOTP (http://en.wikipedia.org/wiki/Time-based_One-time_Password_Algorithm). Then the same shared secret could be configured into several token generators (e.g. Google Authenticator on Android).

    TOTP seems to become the standard for two-factor authentication, given that both Facebook and Google use this (Facebook provides its own limited code generator with their App) and also quite a few other significant services (e.g. Dropbox, Amazon AWS).

    Google also provides a pam module for TOTP which allows one to setup TOTP for own services. I tried that yesterday: Installed the PAM module and added a key into Google Authenticator. Result: TOTP secured SSH login (by using normal account password with the token appended). TOTP support can also be added to non-PAM capable applications, for example a TOTP extension for Mediawiki exists. I tried that one as well and it is working great.

    Google Authenticator App allows one to configure more than one account, so you can secure different services with TOTP and still have one central token generator App.

  13. Re:Thank you by Sqr(twg) · · Score: 2

    Somebody who's making a hundred times your annual salary, most likely.
    There are two ways to get rich in the stock market:
    1) Invest in stocks that are undervalued, then wait ten years until everybody else has figured out they were undervalued, and hope that nothing bad happens in the mean time.
    2) Make the same (often stupid) move that everybody else is going to make, but faster.
    The twitter-following trading bots are using the second strategy.

  14. Hack fail. by viperidaenz · · Score: 1

    It's the users fault for entering their credentials in a fake site. There should be SSL when you enter your password on twitter. That means there should be a verification icon in the URL bar with "Twitter, Inc [US]" on it.

    1. Re:Hack fail. by aaronb1138 · · Score: 2

      Unfortunately, most users still can't think to consider such a simple step. Most browsers now offer to cache login credentials. What the browsers should really do with the heuristics which detect a login prompt is add a warning that the credentials are being entered into a site without SSL or with a mismatched certificate. Certificate exceptions should of course be easy to store as they are now, after a one time prompt.

  15. Re:watch the eyes on the vid by Anonymous Coward · · Score: 1

    Your comment has nothing to do with the person you're responding to. Did you just post that there hoping it would be seen so that you can score points? If so then why not just get an account?

  16. these password stories again by CoralSyks · · Score: 1

    You don't need N-factor authentication to be secure, the problem is most companies implented half a-- 1 factor to begin with, and instead of fixing their authentication decide to implement half a-- 2 factor authentication. If you don't do it correctly it doesn't matter how many factors you think are cool in meeting rooms

  17. No DID? by msk · · Score: 1

    None of these organizations have direct inward dialing?

    How far behind the times are they?

  18. Re:Thank you by peawormsworth · · Score: 1

    And what fucking moron decided it would be good for their stock market bot to monitor twitter?

    Its really very brilliant. If you know other bots are using twitter to make market bidding decisions, then your bot can use this knowledge to trick the other bots into doing your bidding. Its a bot eat bot world out there

  19. Re:Thank you by peawormsworth · · Score: 1

    The same kind of fucking moron who has always done that kind of shit with the markets. A greedy cocksucker. The kind that cannot profit fast enough.

    Well actually, the bots trading on the false twitter post could not lose money fast enough. They were the only ones quick enough to sell during the brief crash they created for themselves. The other bots that bought at the reduced rates where likely not following the twitter feeds.