Slashdot Mirror


Point-and-Click Gmail Hacking Shown at Black Hat

not5150 writes "Using Gmail or most other webmail programs over an unsecured access point just got a bit more dangerous. At Black Hat Robert Graham, CEO of errata security, showed how to capture and clone session cookies very quickly over connections without encryption. He even hijacked a shocked attendee's Gmail account in the middle of his presentation. 'While Ou was typing, Graham was running Ferret and sniffing all the cookies that were being sent from Ou's laptop and Google. Graham then clicked on Ou's IP address and Gmail page, complete with Ou's recently sent message on the screen. We photographed both Graham's and Ou's laptop at that time and posted it to the picture gallery. You'll see that the contents are exactly the same.'"

21 of 260 comments (clear)

  1. Slow News day? by OverlordQ · · Score: 4, Insightful

    Somebody intercepted plaintext on an open network . . . . did I miss something?

    --
    Your hair look like poop, Bob! - Wanker.
    1. Re:Slow News day? by Anonymous Coward · · Score: 5, Informative

      if the traffic is sniffed as the browser is sending the SSL requests, one could sniff the SSL key and just use that to get in.
      You have no idea how SSL works.
    2. Re:Slow News day? by The+Velour+Fog · · Score: 4, Informative

      Also, logging in via SSL doesn't always work either - if the traffic is sniffed as the browser is sending the SSL requests, one could sniff the SSL key and just use that to get in. SSL uses Diffie-Hellman key exchange so no unencrypted key is ever sent
    3. Re:Slow News day? by zippthorne · · Score: 4, Interesting

      That's odd. I go to https://mail.google.com/ and at no time during the login process do I ever see the address bar go from yellow to white. Are you sure it still works the way you say? Or is it sending something unencrypted so fast that I'm just not noticing (which would be kind of worrying).

      --
      Can you be Even More Awesome?!
    4. Re:Slow News day? by Kartoffel · · Score: 5, Informative

      That's easy enough to fix with a Firefox plugin: http://www.customizegoogle.com/

    5. Re:Slow News day? by tom17 · · Score: 4, Interesting

      Seemingly neither do the people in the comments section at the bottom of TFA :-(

      Worrying.

    6. Re:Slow News day? by tizan · · Score: 5, Insightful

      I believe if you use https://gmail.google.com/ (note gmail instead of mail) your whole mail session is always encripted and not the login page only.

    7. Re:Slow News day? by gpuk · · Score: 4, Informative

      That is the correct behaviour.

      Essentially, if you enter via http://mail.google.com/ Google remembers this and encrypts only the login process and then reverts back to plain text. If you enter via https://mail.google.com/ your session remains encrypted throughout.

    8. Re:Slow News day? by SanityInAnarchy · · Score: 4, Insightful

      Because this means more computing for google servers.

      This is Google we're talking about. They can take it.

      I mean, seriously, even an old 200 mhz Linux box set up as a server can do crypto at wire speed (100 mbit ethernet). I'm sure it takes them more cycles to spellcheck it for you.

      And also because your mail is sent as plain text to the recipient's mail server (and it came as plain text on google server). So it would be useless to crypt only the first (or last) part of the way.

      "Not entirely secure" is not the same thing as "useless".

      Consider: The majority of most websites are mostly served as plain HTML over HTTP. Is it still "useless" for me to admin mine using SSH instead of unsecured FTP? I think not.

      The point I am making here is, if your communications with Gmail are unencrypted, it makes it possible for someone to not only intercept the content of the message, but alter it -- they could, in fact, hijack your whole session, gain access to your archived mail, and send mail pretending to be you. All of this is theoretically possible with that SMTP connection between Gmail and another mailserver, but it's also insanely difficult to get anywhere close to what you can get by hijacking the session.

      And there's even a point to encrypting it, as opposed to just signing it. Well, two points, actually:

      1. Browsers include SSL natively, but there's no spec for just signing something and sending it plaintext. Therefore, it would have to be done in JavaScript, which is MUCH slower.
      2. SMTP is only used for connections between Gmail and other servers. Mail sent between you and another Gmail address is entirely secure, once it gets to the server. Why let people hijack your session and make it insecure?

      I mean, I tend to agree with you somewhat -- I only really do email from the one machine that has my GPG key, and I wouldn't use Gmail for more than backup. I don't see much point to webmail, because I never login to anything from a computer that isn't my own, because I don't like exposing myself to keyloggers.

      But even if it can't be very secure, why make it even less secure than it can be?

      --
      Don't thank God, thank a doctor!
  2. Correct me if I'm wrong but by trifish · · Score: 4, Informative

    Even if you don't have encrypted transfer, session cookies can be easily secured by associating them with a certain IP address. The attacker who captures the cookies has a differnt IP address so the cookie is rejected as invalid. The only situation where this solution may get a bit annoying is if you're behind a load-balancing proxy, which changes your IP address on every request (fortunately, this is somewhat rare.) It's better than allow easy hijacks...

    1. Re:Correct me if I'm wrong but by Stile+65 · · Score: 4, Insightful

      If the hijacker gets on your wireless AP, then he's NATed behind the same public IP address as you. Voila, he matches your IP. Another layer is to also fix the session cookie to the browser's UA string, but that won't work if the attacker knows you're doing it and changes his browser's UA string to match yours. In summary, secure your wireless AP if you're a user and buy some SSL acceleration hardware so you can support forcing all traffic on your website to use SSL if you're a service provider.

      --
      I claim first use of "Error No. 0B" - or "No. 0B error." It'll be the new ID 10T!
  3. Re:Good reason to install Better GMail! by afidel · · Score: 4, Informative

    I think you should have linked to the Mozilla addons page. I know I wouldn't install a firefox addon from a random site with the name hacker in the URL.

    --
    There are 4 boxes to use in the defense of liberty: soap, ballot, jury, ammo. Use in that order. Starting now.
  4. Re:Could be fixed easily by Google. Shame. by SatanicPuppy · · Score: 4, Informative

    They offer it. All you have to do is go to https://mail.google.com/ rather than http://mail.google.com./

    I fail to see how the average person, as usual, being lax about their security is in any way Google's fault. This was something I found immediately, just because I won't check my email without a secure connection.

    --
    ad logicam Claiming a proposition is false because it was presented as the conclusion of a fallacious argument.
  5. Bottom line by Kadin2048 · · Score: 5, Informative

    I think the upshot of this isn't really "look at us, we can sniff plaintext Wifi connections," but "look at one of the biggest players in web mail use plaintext connections even though they ought to know it's a hideously bad idea."

    It's more of an indictment of Google than anything, because they default to unencrypted HTTP rather than HTTPS, and most users won't know that they can go to https://mail.google.com/mail/ to force smarter behavior.

    --
    "Ladies and gentlemen, my killbot features Lotus Notes and a machine gun. It is the finest available."
    1. Re:Bottom line by It'sYerMam · · Score: 4, Informative

      And furthermore, if you use google via a customised google page (http://www.google.com/ig) then even if you redirect that to https://.../ then the link to GMail is still regular http.

      --
      im in ur .sig, writin ur memes.
  6. Re:Could be fixed easily by Google. Shame. by Bob+535604 · · Score: 5, Informative

    I fail to see how the average person, as usual, being lax about their security is in any way Google's fault. This was something I found immediately, just because I won't check my email without a secure connection.
    A lot of people wouldn't know about this or even look for it and you know it. Google could make https the default or even mandatory, and it would completely kill this entire issue.
  7. Re:Could be fixed easily by Google. Shame. by TheRaven64 · · Score: 5, Insightful

    A huge part of security is having sane defaults. If you support 'secure' and 'insecure' you should default to 'secure,' and let users who know what they are doing, and need 'insecure' behaviour opt into it. You shouldn't default to 'insecure' and make it the users' responsibility to select 'secure.'

    --
    I am TheRaven on Soylent News
  8. Yes, it is. by Kadin2048 · · Score: 4, Insightful

    You're right that the exploit itself really isn't that new. What's new is twofold:

    1) It's being done to Gmail, a service provided by People Who Should Know Better.
    2) There is now a tool that allows any script kiddie to do it, meaning that it's no longer a theoretical exploit; it's something that your next-door neighbor is going to be doing to you (or your slightly less-technically-savvy family/friends) if you don't take precautions.

    #2 is probably most significant, since it's really what's going to cause #1 to change. Sometimes, producing a GUIed, Windows-based exploit tool is the fastest way to get a problem fixed, because it's the easiest way to turn an academic argument into a real-world security issue that will get resources thrown at it. (Of course, it may also land you in jail.)

    --
    "Ladies and gentlemen, my killbot features Lotus Notes and a machine gun. It is the finest available."
  9. Re:psh by Applekid · · Score: 4, Funny

    Maybe not, but the heavenly smell is basically a SSID broadcast of their existance to those interested in finding them.

    --
    More Twoson than Cupertino
  10. Re:thank god... by Howitzer86 · · Score: 4, Funny

    I have never heard of anyone thanking God that they use Yahoo... in my entire life.

  11. It's not Google's fault... by overeduc8ed · · Score: 4, Funny

    It's not Google's fault -- gmail is still in beta! :)