ie8 fix
madison

Hamster plus Hotspot equals Web 2.0 meltdown!

By | August 2, 2007, 2:03pm PDT

Summary: Robert Graham (CEO Errata Security) gave his Web 2.0 hijacking presentation to a packed audience at Black Hat 2007 today. The audience erupted with applause and laughter when Graham used his tools to hijack someone’s Gmail account during an unscripted demo. The victim in this case was using a typical unprotected Wi-Fi Hotspot [...]

Robert Graham (CEO Errata Security) gave his Web 2.0 hijacking presentation to a packed audience at Black Hat 2007 today. The audience erupted with applause and laughter when Graham used his tools to hijack someone’s Gmail account during an unscripted demo. The victim in this case was using a typical unprotected Wi-Fi Hotspot and his Gmail account just popped on the large projection screen for 500 or so audience members to see. Of course had the poor chap read my blog about email security last week he might have avoided this embarrassment. But for the vast majority of people using Gmail or any other browser or “Web 2.0″ application, they’re all just a bunch of sheep waiting to be jacked by Graham’s latest exploit.

I caught up with Graham after the show and we went over more of the details of this Web hijacking exploit. First he captures the Wi-Fi signals using his laptop and a tool called Ferret which he wrote earlier this year. The tool grabs Cookies and Session IDs from your Web Browser session sent over the air and stores it.

Next, Graham fires up his new tool called Hamster (which he will post within the next week) which will process those Session IDs and Cookies so that they’re ready to clone.

Captured Session IDs and Cookies

Hamster hosts a local proxy server that allows point-n-click hijacking

The attacker can then go to his local Hamster proxy server to clone other people’s Web identities and hijack their Web accounts.=

Once the identity is cloned, the attacker is able to jump on to online services like Gmail masquerading as the victim with full access to read and send email on behalf of the victim. Furthermore, the attacker can go to maps.google.com and find the victim’s personal information like home address if it’s saved in to Google Maps.

I volunteered to set up an account on Gmail called “GetMeHacked” and allowed Graham to perform the attack. I then got a test email to Humphrey Cheung (Sr. Editor TGDaily) who was also watching the attack. Cheung posted his story here.

Before I knew it, I got hijacked and Graham sent an email on behalf of me.

What makes this even scarier is that Graham can go back in to my Gmail account for at least several more days using the same hijacked Session ID and Cookies. In fact he doesn’t even need to perform the hijacking immediately because he can record all the Wi-Fi Hotspot data and process it with Hamster at anytime before the Cookies expire. In one fell swoop the attacker can steal the identities of every Wi-Fi Hotspot user within a few hundred feet or a lot more if a larger antenna is used.

If you weren’t already scared of using public Wi-Fi Hotspots before, this should drive the point home. Graham even mentioned the dangers of Municipal Wi-Fi the use of Anonymous Secure Hotspots to solve this problem which I wrote about a few weeks ago. For the time being however, there isn’t much that can be done on the vast majority of Web 2.0 services. Gmail fortunately allows the user to manually force SSL mode which would solve this problem but unfortunately they don’t turn it on automatically for all users so the vast majority of users are wide open to session hijacking. For now, a user’s only effective solution is to use some sort of VPN gateway to encrypt all of their data but most people won’t do that. Tools like Hamster and Ferret will hopefully raise awareness and get the public to demand more secure Hotspots and SSL-enabled online services.

Kick off your day with ZDNet's daily e-mail newsletter. It's the freshest tech news and opinion, served hot. Get it.

Topics

Disclosure

George Ou

http://blogs.zdnet.com/Ou/?page_id=557

Biography

George Ou

George Ou, a former ZDNet blogger, is an IT consultant specializing in Servers, Microsoft, Cisco, Switches, Routers, Firewalls, IDS, VPN, Wireless LAN, Security, and IT infrastructure and architecture.

71
Comments

Join the conversation!

Just In

Go ahead and look at my gmail account
John Musbach 31st Jan 2008
I have nothing to hide haha, just subscribed to a number of mailing lists ...of course this issue is rather critical if any business folks are silly enough to use gmail for their business communications and utilize their gmail account through the web interface non https.

- John Musbach
0 Votes
+ -
This is why Windows sucks
NonZealot 2nd Aug 2007
Your account was hijacked because Windows is a single user system: everyone is an Administrator. With OSX's awesome *nix kernel, everyone logs in with restricted rights and this type of an attack is impossible. If you were to access GMail from Safari on OSX, no one could steal your identity thanks to OSX's *nix security mechanisms.

Don't laugh... I bet you $10 that there are people who think that way.
0 Votes
+ -
Do you have a brain?
croberts 2nd Aug 2007
Web 2.0 as it is commonly found right now, is the problem.

Same deal with email (there was another interesting blog a couple days ago about email security needing to be WAY easier than it is right now).

Save your Linux rant. One could even argue that open source Linux, with it's ability to be infinitely modified, is the problem because it provides a better platform to make hacker tools.. hehe, I could play devil's advocate too happy

In any event, I will agree that on principle, Linux is more secure. Toss in this Web 2.0 crap... all bets are off.
0 Votes
+ -
He forgot his sarcasm symbol
georgeou 2nd Aug 2007
He forgot his sarcasm symbol. Read his message in the context of sarcasm.
0 Votes
+ -
Huh?
Mikael_z 3rd Aug 2007
"Web 2.0 as it is commonly found right now, is the problem."

Web 2.0 is a very misleading name on something which actually is not about new
technology but about new ways for people to interact, communicate.

Why I agree that Linux is a vastly superior alternative to windoze, I think in this case
it's mostly Wifi protocols, unencrypted, to blame.
0 Votes
+ -
That's why I used quotes for Web 2.0
georgeou 3rd Aug 2007
That's why I used quotes for Web 2.0 and I refer to it as "Web 2.0". It's a marketing name that's deliberately nebulous and not a single person on the planet can define what it is. These kinds of words pop up in the world of IT every few years and they're great marketing tools because they can define it as whatever suits what they're trying to sell. Heck, Cisco's Chambers recently defined it as "collaboration" and video conferencing.
0 Votes
+ -
You mean "Web 2.00" (as in Oh-Oh!")
critic-at-arms 3rd Aug 2007
Unfortunately, there is no bulletproof solution -- and even the good ones are in the legitimate users' way more than in the hackers' way.

Maybe it's time for a resurgence in PGP use. No, it won't keep Freddy the Feddie from getting his jollies looking at your archived porn, but it will keep the hacker from spoofing you during the several days before the cookies die.

Of course, it will only help until some moron from the FBI loses his laptop with 50,000,000 users' account info on it . . .
0 Votes
+ -
buzzwords
JetJaguar 3rd Aug 2007
These kinds of words pop up in the world of IT every few years and they're great marketing tools because they can define it as whatever suits what they're trying to sell.

"Intranet" was another one, in the 90's.
0 Votes
+ -
Buwahahaha.. you made my day.
kraterz 3rd Aug 2007
Thanks for the laugh. I think you forgot your sarcasm smiley, or were you really serious?

While we're at it, how about we all dump our PC's and move to VAX/VMS machines? They're the most secure systems I've ever used. Your gmail session will never, evar, be stolen. :o
0 Votes
+ -
Already ahead of you on that one
nucrash 3rd Aug 2007
Although we are moving to AS/400s with Wireless terminals. We connect using Port 23. We protect our APs by turning off all of our broad cast APs and use 40 bit WEP. We also use an exclusive MAC Address list that we manage centrally on an anonymous access ftp so that the co-workers can add any new MACs that might need on our secure network.

I would just like to see some one try and exploit our network.
On securing wireless networks. From what he reported it would take a hacker less time than it takes you to log in to break your current security. He recommends WPA 2 encryption. Well read the article I'm sure it's in the ZDNet archives.
0 Votes
+ -
Thanks for that bit of information
nucrash 3rd Aug 2007
But I feel that my methodology is fool proof and can not be cracked. After all, we don't use those puny Windows systems. We use AS/400 clients with Telnet access.

You should read about telnet as well:
http://blogs.zdnet.com/Ou/?p=424

We have had a secure network for a number of years. We use a Linksys router to block all outside traffic.

Go ahead and hack me, my IP is 127.53.214.8
0 Votes
+ -
You're kidding right?
Furiousrog 3rd Aug 2007
You must be. WEP has been proven to be almost worthless as is using MAC lists because they can be spoofed.

If you're serious I hope for your sake no hacker worth his salt comes near enough to your "secure" network to get a signal.

Also giving out your IP and asking to be hacked is just silly bravado considering that the "security" you talk about secures the wireless portion of your network.
0 Votes
+ -
Just noticed the IP
Furiousrog 3rd Aug 2007
LOL, I just noticed the IP address you posted. I didn't actually read it the first time. Got it! happy

Ignore my previous post.
0 Votes
+ -
But I wanted some one to actually try and hack me first.

I thought the Telnet would give it away, or the link that I mentioned on the Telnet.
0 Votes
+ -
RE: Already ahead of you on that one
joe6pack_z 3rd Aug 2007
...I would just like to see some one try and exploit our network...

Ain't a horse that can't be rode, ain't a cowboy that can't be throwed.
0 Votes
+ -
If you can exploit me at that IP
nucrash 3rd Aug 2007
You have bigger problems than I do.
0 Votes
+ -
What's the...
zach.winchester 6th Aug 2007
IP of your "anon ftp" site?
0 Votes
+ -
re: Buwahahaha.. you made my day.
rregier@... 3rd Aug 2007
You should at least be using Integrity/OpenVMS nodes, you can buy them new w/current O/S release happy

http://h20341.www2.hp.com/integrity/cache/332341-0-0-0-121.html
0 Votes
+ -
I cracked up when I first read this post. Knowing you and your usual banter, I couldn't help but know something was up.

Still pretty good though. I would say you could give Mike Cox a run for his money.
0 Votes
+ -
LOL, nice straw man, ZealotBoy
RealNonZealot 3rd Aug 2007
I wonder if anyone has ever seen you and Ou in the same room. wink

Maynor got his at the Pwnies for letting his emotions overrule his better sense...maybe
you guys will get an award for stereotyping all users of a platform some day....get
your acceptance speech ready!
0 Votes
+ -
Must have had his Dolt Cola today...
Marty R. Milette 3rd Aug 2007
>The audience erupted with applause and laughter when Graham used his tools to hijack someone?s during an unscripted demo.

You are such a DOLT. We're talking about HTTP and cookies here -- nothing to do with the operating system whatsoever. If someone wanted to be stinky about it, they may point out that everything in Google runs on LINUX. Back in the hole troll -- no cookie for you today.
You just had to bring up the bet , didn't you .
0 Votes
+ -
They should be paying you
GW Mahoney 2nd Aug 2007
Errata Security again?! I hope you have more security contacts than that, but it seems to be all them or Ellch. BTW, it may be guilt by association, but I would never - ever- say that they are going to release some code soon. At this point they should have to post it *before* they announce it - for obvious reasons.

Furthermore, pardon me if I don't think stealing cookies from an *unprotected* wi-fi link is news. Next thing you know they'll find out my data can be snooped after they plug into my ethernet hub at work. Oh no!
0 Votes
+ -
There were 500 or so people packing that room who would disagree with you.
0 Votes
+ -
It was a Black Hat convention
GW Mahoney 3rd Aug 2007
Of course they would disagree. That is the source of all their reputation and publicity.

Can you asnwer me this? How does releasing this script aid the cause of computer security? In the previous errata security incident, I was asking for a hijack script as proof that an exploit was possible. In this case, nobody would claim that gmail session hijacking wasn't already possible. His script will only make it more accessible to script kiddies. Does that serve the cause of computer security?
0 Votes
+ -
Ha!
GW Mahoney 4th Aug 2007
This made Slashdot, where it got exactly the kind of reception I would expect.

http://it.slashdot.org/comments.pl?sid=260231&cid=20100753
0 Votes
+ -
I dont have WI-FI router
mark.holman@... 3rd Aug 2007
I don't even have a Wi-Fi router for that reason so my neighbors cannot see what I am up to. and my system is more secure that way.

BTW In Michigan they passed a Wi-Fi law and some person was parked out in the street got busted for using a Wi-Fi access, I think it was a coffee shop.

wonder how many other states are doing that ?
0 Votes
+ -
SSL Mode in Gmail
Mwendo 3rd Aug 2007
How does one manually force SSL mode in Gmail as mentioned in the story?
0 Votes
+ -
Simple
nucrash 3rd Aug 2007
https://www.gmail.com

That will get you started on ssl mode. Accept the certificate and you should be locked and loaded for future use.
0 Votes
+ -
Even simpler
aep528 3rd Aug 2007
Go to the address bar in your browser and type 'www.gmail.com' It DEFAULTS to SSL, but you wouldn't know that from any of George's posts. Typing the http:// in front forces it out of SSL mode. After reading his nonsense, I went and looked at my browser shortcut for gmail and found that I have been using SSL for gmail since I first signed up.
0 Votes
+ -
Not so sure!
Martinraymond.qc 3rd Aug 2007
Just tried your suggestion. The result is not the same as you mentioned. So I am not sure you should label George's text as nonsense. Food for thought!
0 Votes
+ -
by adding the S, you get a certificate to accept and begin your secure transaction. Many people forget these things.

I was wrong though.

It should be https://mail.google.com
0 Votes
+ -
Ha!Ha!
Martinraymond.qc 3rd Aug 2007
Now it perform the way you indicated. Thank you for the correction. BTW some people forget, some plainly don't know don't know. This is how the world is especially with technology users. wink
0 Votes
+ -
Double Doh
nucrash 3rd Aug 2007
Alright

So https://mail.google.com

Now we are using SSL.

I was wrong, you can go to gmail.com without any http:// and you will be pushed to SSL.
0 Votes
+ -
Careful
Fr?v 5th Aug 2007
Going to 'www.gmail.com' didn't default to SSL for me.

Just to clarify how to tell if you're using Gmail over SSL - You can't just go to 'www.gmail.com' and see if it put an 'https' there. Gmail has always used SLL for the sign-in page. After signing in though it takes you to a non-SSL page to display your emails. Going to 'https://mail.google.com' takes you to the same sign-in page but keeps you on SLL for the rest of the session.
0 Votes
+ -
Yes! How?
theslaw 5th Aug 2007
Hi,
I wandered through Gmail and couldn't find out how to do this. Please let us know.

thanks!!
0 Votes
+ -
Go to https://mail.google.com
georgeou 5th Aug 2007
Go to https://mail.google.com instead of gmail.com or http://mail.google.com. Make sure you bookmark that https version.
0 Votes
+ -
what's wrong with VPN over wifi?
tecexec 3rd Aug 2007
George - I noticed you keep dismissing vpn as a viable option to protect against wifi exposure. Many companies use corporate vpn's and there are also some public vpn services available. Could you please elaborate why using a vpn tunnel into a secure end-point (e.g. corporate LAN) isn't a good strategy. I've been using public internet access both wired and wifi that way for years and thought of being relatively safe.
0 Votes
+ -
Er...
bmerc 3rd Aug 2007
He did NOT say using a VPN wasn't a good strategy.
He said "Most people won't do that" which is a totally different issue.
0 Votes
+ -
Actually, George addresses
Real World 3rd Aug 2007
that very issue here http://blogs.zdnet.com/Ou/?p=489
VPN is a good solution for Hotspots, but not practical for everyone if they don't have a VPN server to use. There might be some VPN services but they cost money. Most people can't be expected to set up a VPN server at home or buy a VPN service. This is why I am lobbying for Secure Anonymous Hotspots so that the masses can be protected.
http://blogs.zdnet.com/Ou/?p=587
0 Votes
+ -
Windows Sucks?
TN-Limey 3rd Aug 2007
Give it up with the Windows sucks nonsense.
It's like blaming your builder when your home gets burglarized.
Let's fix it and go after the criminals who hack into other peoples stuff. Unfortunately computer crime is still seen as a soft offence. Get them and put them away like the criminals they are.
A year or two with an amorous cell mate might get the word out, but the number of hackers who are actually prosecuted is minimal.
0 Votes
+ -
Solution
TN-Limey 3rd Aug 2007
Wait a minute, if I could just route all the spam email I receive to whoever wants to hack my account..........
Mike
0 Votes
+ -
Encryption
Xtien 3rd Aug 2007
As George Ou says, if the poor chap had used encryption, he wouldn't have been embarrassed. His session would still have been hacked, but his messages would have been unreadable for the hacker.
0 Votes
+ -
Isn't it funny ?
vbp1 3rd Aug 2007
"What makes this even scarier is that Graham can go back in to my Gmail account for at least several more days using the same hijacked Session ID and Cookies. "

isn't it desfribes problem with gmail server rather then the security of the WiFi hot spot.

if I logout of the email page shouldn't my session and cookie be close. even more interesting is the fact that session should expire faster then couple of days if the client have disconnected. so if I loose my connection and want to go back I need anouther sesionid. I blame it on Gmail first, web 2.0 later.
0 Votes
+ -
I'm walking down the street...
schmutz@... 3rd Aug 2007
I'm walking down the street and I noticed an open front door to a home. I decide to have a look inside. I step inside and rummage around, poking at stuff and checking the closets and crawlspaces. After some time, I decide I've seen enough and step back out on the street. In the meantime, a policeman has been watching me from the beginning and sees me exit the home. He comes up to me and accuses me of trespassing, I state that I was doing this homeowner a favour by trespassing into his home and because of this, he should not arrest me, he should thank me.

My point: I don't think we should be raising these people to celebrity status. If their motives are truely valuable or even vaguely altruistic then why aren't companies like M$ picking them up to provide upto date "legit" expliotation testing? ...and firing the "old hackers gone good" they hired 3 years ago?

While I believe that these guys are truely brilliant programmers, I'll not soon be trusting them enough to invite them to my home just yet.
0 Votes
+ -
Your confused. Its sad... i cried for you.
Been_Done_Before 3rd Aug 2007
He setup the wifi, some tard used it without his approval. While he was monitoring the traffic using a proxy, he recorded data, he then used that data to reopen a session that existed on his network that was not permitted. He then sent the trespasser an email complaining that he should not do such things.

In this scenario, the end user was tresspassing, not the black hat.
0 Votes
+ -
...just because you can do stupid things in any OS. happy

Whatever makes you feel better though. Windows is obviously sliding, must be a
tough time for windows zealots, true believers, cultists, etc...
0 Votes
+ -
Google on the other hand should disable this. I don't like the fact that sometimes ssl is not enabled. I can log in both ways. By default SSL is on, but if I screw up and type in "http://" then I basically screwed myself. Any later attempt back to the site will then default back to the open protocol.
0 Votes
+ -
sssh Now you can't say that...
fr0thy2. 3rd Aug 2007
the Apple Tarts will just have a little hissy fit that you didn't agree...sheesh. Come on man feed the fruits, feed the fruits
0 Votes
+ -
Go ahead and look at my gmail account
John Musbach 31st Jan 2008
I have nothing to hide haha, just subscribed to a number of mailing lists ...of course this issue is rather critical if any business folks are silly enough to use gmail for their business communications and utilize their gmail account through the web interface non https.

- John Musbach

Join the conversation!

Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]
ie8 fix
Click Here
ie8 fix

The best of ZDNet, delivered

ZDNet Newsletters

Get the best of ZDNet delivered straight to your inbox

Facebook Activity

White Papers, Webcasts, & Resources
ie8 fix
ie8 fix