External
« Setting the secure flag in the cookie is easy | Main | When best intentions go wrong »
Monday
Aug112008

Surf Jack - HTTPS will not save you

Say hello to a new security tool called "Surf Jack" which demonstrates a security flaw found in many public sites. The proof of concept tool allows testers to steal session cookies on HTTP and HTTPS sites that do not set the Cookie secure flag. I've been working with two banks and some of the vulnerable sites to get this fixed before publishing my research. Mike Perry gave a talk at Defcon involving the exact same vulnerability - so there is no point in keeping this from the public.

You can download the tool from here and a paper with more details on the subject.

The following is a video demonstration of how this affects Gmail and how to prevent this from affecting your you.

[vimeo 1507697]

Reader Comments (24)

[...] finished reading about Surf Jacking from Ronald van den Heetkamp (and Sandro Gauci and Mike Perry), the demonstration movie that Sandro published really set in stone how interesting [...]

August 11, 2008 | Unregistered Commenterun-excogitate.org » Blog

[...] el siguiente video se utiliza una nueva herramienta de seguridad llamada Surf Jack que demuestra como robar cookies de cualquier sitio. La prueba de concepto muestra cómo es posible [...]

August 12, 2008 | Unregistered CommenterShadow Security » Video

[...] video), Sandro demonstrates how an attacker on the same network physical network can use his tool (SurfJacking) to hijack another user’s authenticated SSL session with GMail and successfully obtain the [...]

[...] Jack Sandro Gauci has posted a very interesting video demonstration about what he called Surf Jack. Say hello to a new security tool called “Surf Jack” which [...]

August 13, 2008 | Unregistered CommenterPHP.ph » Surf Jack

sure does ;) The paper obviously mentions that .. and it is what triggered the development of the surf jack tool.

August 13, 2008 | Unregistered CommenterSandro

[...] démonstration de piratage de compte Gmail avec l’outil Surf Jack [...]

[...] démonstration de piratage de compte Gmail avec l’outil Surf Jack [...]

[...] les sites vulnérables à cette attaque: https://addons.mozilla.org/fr/firefox/addon/8454 Source: http://enablesecurity.com/2008/08/11/surf-jack-https-will-not-save-you/ [...]

[...] [...]

[...] 最近在網上看到一個叫“Surf Jack - HTTPS will not save you”的post。Surf jack是一個新的入侵工具,作者Sandro Gauci利用它成功偷取別人賬戶: Surf Jacking Gmail demonstration from Sandro Gauci on Vimeo. [...]

August 16, 2008 | Unregistered Commenter» GMail Surf Jacking &ra

[...] qu’on pouvait facilement pirater un compte Gmail par l’intermédiaire du logiciel surf jack. Voici la démonstration en vidéo [...]

August 20, 2008 | Unregistered CommenterPirater un compte Gmail

[...] change my log on credentials or even worse. For more details on the attack, please go to the “Enablesecurity.com” web site and watch the video. It shows how surf jacking can be used against a vulnerable [...]

[...] Avec cet outil, et un sniffer réseau, une personne malicieuse peut prendre le contrôle sur un compte Gmail quasiment sans difficulté. Vous pouvez trouver une description assez détaillée de la procédure (avec vidéo à l’appui) sur EnableSecurity. [...]

Hey Sandro, excellent demo video. Good job man.

It's worth mentioning that although Gmail now has the "enforce SSL" option, very few users will actually bother enabling it :( Unfortunately, Gmail - and all other large free webmail providers - don't have the infrastructure required to handle all the extra overhead traffic caused by SSL.

Also, even if a site uses SSL and sets cookies using the 'secure' flag, couldn’t sessions still
be hijacked via SSL MITM? Of course, the victim would get an invalid certificate warning, but still many users ignore those.

August 31, 2008 | Unregistered CommenterAdrian Pastor

Very true what you said about the "enforce SSL" option. People use defaults, only geeks change options and such ;-) So until it becomes easier for services such as Gmail to serve everyone with SSL, I don't see the default changing.

Yes - SSL MITM still works if the user accepts an invalid certificate or the attacker has access to a valid key (like the case of the Debian issue of 3 months ago). It is however becoming more difficult to accept an invalid certificate with Firefox and IE. But truth is that yea, this will always work until current browsers stop allowing users to do (not so) stupid things.

August 31, 2008 | Unregistered CommenterSandro

bug when i choose my interface, line 271, 272..

September 9, 2008 | Unregistered Commenterer0b

currently the tool supports Scapy 1.x. The new scapy version 2 was not tested with Surf Jack and will probably not work.

September 9, 2008 | Unregistered CommenterSandro

Sandro,

A cookie marked as "secure" should be a simple workaround no ?

September 11, 2008 | Unregistered CommenterJipe

Session hijacking...

Recently, two publications raised awareness of a problem with ssl secured websites.

If a website is configured to always forward traffic to ssl, one would assume that all traffic is safe and nothing can be sniffed. Though, if one is able to sniff ne...

September 25, 2008 | Unregistered CommenterHanno's blog

Congratulations Sandro is a great job...

November 5, 2008 | Unregistered CommenterEduardo Rubio

Hello Sandro,

My 2 GMail password was hijacked. I can not acsess my accounts till now. One account at mail.gmail.com, one again at Google mail Apps custom domain.

After reading this, I give "always use https" for all my gmail acc. But in GoogleApps Mail it's not provided (CMIIW).

I access the internet via WIFI to my ISP network. I think my ISP network was not secure. This is my assumption, cause I do not know how to check it.

So, I decide to move to DSL or Cellular (HSDPA) internet connection this month. I hope this is the best solution for my online access security. I'll avoid WIFI. Give me your advice please.

I use backtrack 3.0 for posting this. But I do not find your apps for hijacking gmail (surfjack?) and other tools for waching the IPs as seen on the video.

Anyway, thanks for the information. I keep trying to take my gmail account back. It will be nice if you give me feed back.

Regards.

December 2, 2008 | Unregistered CommenterParah Dab

Hi Parah

For a home user, avoiding WiFi will normally reduce your exposure to this kind of attack; so I think that it is a good solution.

Regarding Backtrack - you simply need to download the file to the Backtrack machine from surfjack.googlecode.com. By making use of backtrack you avoid dependency hell ;-)

Goodluck with the Gmail account recovery!

December 3, 2008 | Unregistered CommenterSandro

[...] Added Surf Jacking Cookie Security Inspector in “Misc->Anti phishing /pharming/jacking” : This extension is based on Sandro Gauci’s paper [...]

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>