New Cookie Attack - Google, Facebook, Others at Risk
Links: home · search · speed test · login · more ·
Links: Reply New Topic
Forums » Security » Security » New Cookie Attack - Google, Facebook, Others at Risk
page: 1 · 2 · 3
SUMware @ 4th Nov 08:44PM:
New Cookie Attack - Google, Facebook, Others at Risk
From The Register
4th November 2009 - said by Dan Goodin :
Newfangled cookie attack steals/poisons website creds
Google, Facebook risk
A security researcher has discovered a weakness in a core browser protocol that compromises the security of Google, Facebook, and other websites by allowing an attacker to tamper with the cookies they set.
The weakness stems from RFC 2965, which dictates that browsers must allow subdomains (think www.google.com) to set and read cookies for their parent (google.com). The specification also states that if a cookie for a subdomain doesn't already exist, the browser should use the cookie belonging to the parent instead.
The arrangement makes it possible for attackers to steal or even alter the cookies that websites use to authenticate their users. Attackers would first have to identify an XSS, or cross-site scripting, bug in some part of the site they are targeting. But because virtually any subdomain will suffice, the scenario isn't unrealistic, two web security experts said.
"Most websites actually will store session IDs in a cookie and that's actually how they keep track of users throughout the use of their website," said Mike Bailey, a senior researcher for Foreground Security who first documented the flaw at last month's Toorcon hacker conference. "Using the same techniques to attack those cookies, I can really damage sessions and cause some problems."
Bailey's paper goes on to demonstrate how he used the technique to bypass a feature Google recently implemented to beef up security on Gmail and other properties. By exploiting a minor vulnerability in sites.google.com, he was able to falsify the contents of his global Google cookie. Google has since fixed the XSS hole in the subdomain.
In turn, that allowed him fool the Google protection, which checks to make sure the value in the cookie matches a hidden parameter of the login page.
Bailey lists several other sites that have been known to be vulnerable to similar attack techniques. Using an XSS hole on www.advertising.expedia.com, he found it was possible to poison the global cookies for the entire expedia.com domain. Because the site didn't set the cookies with proper escaping, an attacker could have used the weakness to inject malicious javascript into expedia pages.
Chase.com, capitalone.com and chasevisasignature.com either are or were vulnerable to similar attacks because they shared code with images.bigfootinteractive.com, which was vulnerable to XSS exploits.
Bailey said it's not hard to imagine university websites would be vulnerable to such attacks because the domain names frequently use names such as psychology.school.edu, geography.school.edu and so forth. A single bug in a student-maintained computer science project might be enough to compromise personal data stored on the college's student enrollment server, he said.
Websites can guard against attacks by regularly checking their pages for bugs, but because the attack exploits the way browsers are supposed to handle cookies, a more comprehensive fix will probably require a change to the underlying protocols. Which means this attack will probably be around for a while to come.
The paper is here.
reply
ironwalker @ 4th Nov 09:12PM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
Waiting to hear from those who love cookies. ;)
reply
siljaline @ 4th Nov 09:19PM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
No unwanted cookies here :o
reply
chrisretusn @ 4th Nov 09:32PM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
No big deal, cookies all gone after exit.
--
Chris
Living in Paradise!!
reply
SUMware @ 4th Nov 10:03PM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
The attacks can occur during a surfing session while cookies are maintained (unless all cookies are blocked). The attack does not target what occurs after the browser exits or is closed.
reply
siljaline @ 4th Nov 10:16PM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
Also assuming your Browser settings are sufficiently tweaked
reply
La Luna @ 4th Nov 10:16PM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
Which means anyone is vulnerable if a cookie must be allowed to let a site work properly.
reply
Full Power @ 4th Nov 10:24PM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
said by SUMware :
The arrangement makes it possible for attackers to steal or even alter the cookies that websites use to authenticate their users. Attackers would first have to identify an XSS, or cross-site scripting, bug in some part of the site they are targeting.
And after they find a vulnerable webhost to infect, they can then start injecting pop-ups for Antivirus2010. Of course it is now a simple matter to eat every cookie in the jar if they wanted to. Maybe grab a half million credit card numbers from the data base to go with the cookies and milk, until the site admin finds and patches the security hole in his website.
reply
SUMware @ 4th Nov 10:58PM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
General descriptions of XSS Vulns are here, here, and here. The NoScript addon for Firefox also offers XSS protection.
reply
quatrix @ 4th Nov 11:20PM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
said by ironwalker :
Waiting to hear from those who love cookies. ;)
It's based on a cross-site scripting attack. The cookie scenario is only an example exploit.
reply
anon @ 4th Nov 11:21PM:
msg deleted
deleted by a moderator
reply
anon @ 5th Nov 12:46AM:
msg deleted
deleted by a moderator
reply
Graycode @ 5th Nov 01:44AM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
The problem is made worse when ignorant companies provide zones of their own domains to be operated by independent 3rd parties. Such zones are seen by browsers as being part of the parent domain even though the content from them is not directly controlled by the domain owners. Most often they do that for hiding tracking purposes from their own customers. Here's just a few of many examples:
• updates.cox.com == 208.70.139.25 == DoubleClick
• eonline.evanguard.com == 208.70.139.25 == DoubleClick
• email.tracfone.com == 208.70.139.73 == DoubleClick
• smetrics.sun.com == 66.235.130.59 == Omniture
• metrics.scottrade.com == 66.235.132.152 == Omniture
• sci.intuit.com == 66.235.140.93 == Omniture
Trackers like DoubleClick and Omniture are granted access to a whole lot more than just a referrer link when their web servers are able to participate as part of parent domains. For the sake of providing statistics, some companies even provide SSL certificates for the tracker's zones. Meanwhile if I wasn't excessively vigilant then Omniture and others would already know my full name, SSN, most bank account numbers, etc.
It doesn't always require XSS to screw up web security with bogus trusts.
reply
anon @ 5th Nov 01:51AM:
msg deleted
deleted by a moderator
reply
TSI Gabe @ 5th Nov 09:31AM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
And strangely enough, google has a gigantic cookie on it's home page right now...
reply
anon @ 5th Nov 10:00AM:
msg deleted
deleted by a moderator
reply
anon @ 5th Nov 10:36AM:
msg deleted
deleted by a moderator
reply
Selenia @ 5th Nov 11:23AM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
Let's help the guy out a bit. I changed these config screens for noscript. The rest can be left at default. Now it should be effective for your regular sites, but not overly intrusive. This should also help block the bug described in this thread. Combine that with a strict cookie policy.
reply
Dude111 @ 5th Nov 04:18PM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
People who dont delete cookies are most @ risk for this i reckon.. (I ALWAYS DELETE COOKIES AFTER USE)
reply
TheRul @ 5th Nov 05:36PM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
OK, everyone sing it with me
C is for Cookie, that is good enough for me!
I have stopped using cookies. I have moved on to brownies.
I delete mine as well. Now if I could convince my wife of the same, but she does not want to have to log into pogo all the time.
--
If you can't laugh at yourself, you have nothing to laugh at.
Come and spread the FUD »Pub Games
reply
chrisretusn @ 5th Nov 07:36PM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
Still no big deal. What is the attacker going to gain by reading my cookies or changing my cookies.
--
Chris
Living in Paradise!!
reply
Selenia @ 5th Nov 07:51PM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
said by chrisretusn :
Still no big deal. What is the attacker going to gain by reading my cookies or changing my cookies.
Your dslr account maybe? Seems to be one of the sites that can keep one logged in after an IP change. One of my IPs changes all the time(adsl), unless the cookie has a security measure I'm not aware of.
reply
nwrickert @ 5th Nov 07:55PM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
What is the attacker going to gain by reading my cookies or changing my cookies.
Some sites, such as dslreports, maintain authentication status in cookies.
If somebody can steal your dslr cookies, they can login as you and post under your name. Similar things happen with many other sites.
It is probably not a risk for banking sites. They typically use only a session cookie, and the chances are that they associate that with your SSL session. So somebody stealing your bank session cookie would also have to steal your SSL session information to gain access. Note that there is a bug in SSL being discussed here --> »Zero-day flaw found in web encryption so I am wondering whether the two problems can be used concurrently for bank access.
--
AT&T Uverse; Zyxel NBG334W router (behind the 2wire gateway); openSuSE 11.0; firefox 3.0.15
reply
chrisretusn @ 5th Nov 07:59PM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
How are they going to be able to login by stealing my cookies.
--
Chris
Living in Paradise!!
reply
Selenia @ 5th Nov 08:04PM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
said by chrisretusn :
How are they going to be able to login by stealing my cookies.
The cookie contains authentication info that the site uses to determine that you are logged in as you browse. They don't need to get your details. Just load the cookie in their browser and posting as you they go
reply
nwrickert @ 5th Nov 08:04PM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
I login to dslr on my desktop computer. Then I copy the file "cookies.sqlite" in my firefox profile to the firefox profile in my laptop computer. And, voila, I am considered to be logged in on my laptop.
--
AT&T Uverse; Zyxel NBG334W router (behind the 2wire gateway); openSuSE 11.0; firefox 3.0.15
reply
Selenia @ 5th Nov 08:06PM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
said by nwrickert :
I login to dslr on my desktop computer. Then I copy the file "cookies.sqlite" in my firefox profile to the firefox profile in my laptop computer. And, voila, I am considered to be logged in on my laptop.
Cookies for my site use a hash of the IP address to prevent this. If the hash does not match the IP, the person is logged out. The hash prevents simply altering the cookie.
reply
anon @ 5th Nov 08:17PM:
msg deleted
deleted by a moderator
reply
chrisretusn @ 5th Nov 08:31PM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
That is only possible if I happen to be logged in. Once I am logged out they will not be able to use that cookie.
--
Chris
Living in Paradise!!
reply
Selenia @ 5th Nov 08:35PM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
Exactly. However, many just stay logged into the same session, even after closing their browser. Thus the session ID would not change in that case.
reply
nwrickert @ 5th Nov 08:53PM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
Cookies for my site use a hash of the IP address to prevent this. If the hash does not match the IP, the person is logged out.
There's a site I use that does something similar. I find it quite annoying. If I open a VPN to work, then I get a work related IP and I suddenly find I am logged out from that site. So I login again. But after I close the VPN, I am logged out again.
It isn't as if the site is protecting my banking account. It's just a web forum. There isn't much at risk, and there isn't much incentive for somebody to try stealing my site cookie.
--
AT&T Uverse; Zyxel NBG334W router (behind the 2wire gateway); openSuSE 11.0; firefox 3.0.15
reply
SUMware @ 5th Nov 09:02PM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
said by chrisretusn :
Still no big deal. What is the attacker going to gain by reading my cookies or changing my cookies.
Gosh, you think that it might help to read the paper (pdf)?
said by Michael Bailey, Senior Researcher for Foreground Security :
I did a talk at Toorcon last weekend on exploiting client-side applications' trust in subdomains. Primarily, it formalized and demonstrated a few attacks on cookies, which implement security policies backwards by placing more trust in a subdomain of a trusted domain, rather than less, as the hierachical nature of DNS would suggest.
Last night, I put together a quick paper summarizing these problems, with interesting proof-of-concept attacks against Google's new CSRF protection feature and Expedia.
reply
chrisretusn @ 5th Nov 09:47PM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
I read the paper. I still think it's no big deal.
--
Chris
Living in Paradise!!
reply
SUMware @ 5th Nov 09:52PM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
That's nice.
reply
chrisretusn @ 5th Nov 09:54PM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
said by Selenia :
Exactly. However, many just stay logged into the same session, even after closing their browser. Thus the session ID would not change in that case.
Then perhaps more folks should not say logged in then to reduce the risk and have there browser set to delete cookies on exit. It's really not hard to log out and then log back in.
--
Chris
Living in Paradise!!
reply
Selenia @ 5th Nov 11:25PM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
said by chrisretusn :said by Selenia :
Exactly. However, many just stay logged into the same session, even after closing their browser. Thus the session ID would not change in that case.
Then perhaps more folks should not say logged in then to reduce the risk and have there browser set to delete cookies on exit. It's really not hard to log out and then log back in.
You expect common sense from the average user? What planet are you from?
reply
tvtek @ 6th Nov 01:04PM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
Did someone say cookie?
--
Alumni "Mental State"
reply
chrisretusn @ 8th Nov 05:57AM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
What planet? LOL To funny.
reply
Selenia @ 8th Nov 01:03PM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
said by chrisretusn :
What planet? LOL To funny.
Glad you liked it. But really, I have not seen a place on this Earth that common users use common sense. That might be asking too much, unfortunately.
reply
chrisretusn @ 8th Nov 07:04PM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
It not about common sense, I look at it as security sense. Why would anyone want to use cookies keep their login credentials? That is sort of like leaving the key to your house in the lock when you leave the house.
On the topic of this particular security hole. Are there any documented attacks using this particular cookies attack? I could not find any, of course I did not spend a lot of time searching.
--
Chris
Living in Paradise!!
reply
Mele20 @ 8th Nov 10:12PM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
said by chrisretusn :
It not about common sense, I look at it as security sense. Why would anyone want to use cookies keep their login credentials? That is sort of like leaving the key to your house in the lock when you leave the house.
On the topic of this particular security hole. Are there any documented attacks using this particular cookies attack? I could not find any, of course I did not spend a lot of time searching.
Why WOULDN'T someone want to keep permanent login cookies to sites they TRUST and visit daily? I block all cookies including ALL session cookies except for login cookies both permanent and session. I think it silly and unrealistic to accept session cookies only because I never shut down my computer (except when going on an extended vacation) and I never shut down browsers until I have to reboot for some reason. I hate rebooting so I avoid that if at all possible. Why would I want to have to login here 10 to 20 times a day as I come and go to the computer rather than using it for two hours at the same time every day and then not again until the next day at that same time? That makes no sense. Obviously, you must have a laptop and you shut down your computer frequently so using session cookies makes sense for you but not for those of us lucky enough to have (need) ONLY desktops that run 24/7.
Besides, dslr makes me login here AGAIN anyway if I have too many browsers logged in at the same time on different computers. I always have found that irritating as other sites where I am logged in perpetually on maybe 5 tabs on each browser and on three/four browsers don't make me login in again.
--
When governments fear people, there is liberty. When the people fear the government, there is tyranny. Thomas Jefferson
reply
nwrickert @ 8th Nov 10:56PM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
said by chrisretusn :
Why would anyone want to use cookies keep their login credentials? That is sort of like leaving the key to your house in the lock when you leave the house.
No, it isn't at all like leaving the key in the lock. It is more like having the key in your pocket, read to use.
The cookie becomes something of a password equivalent. In practice, the cookie value that keeps me logged into dslr is longer than my dslr password, and harder to guess. If somebody can hijack my browser to steal that cookie, then they might be able to hijack the browser and steal my password the next time I am logging in. Moreover, I can invalidate that cookie value by logging out from that session.
Staying logged in reduces reduces the frequency with which I have to present the actual password, and thus reduces the risk that the password could be stolen.
--
AT&T Uverse; Zyxel NBG334W router (behind the 2wire gateway); openSuSE 11.0; firefox 3.0.15
reply
chrisretusn @ 9th Nov 12:41AM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
said by Mele20 :
Why WOULDN'T someone want to keep permanent login cookies to sites they TRUST and visit daily? I block all cookies including ALL session cookies except for login cookies both permanent and session. I think it silly and unrealistic to accept session cookies only because I never shut down my computer (except when going on an extended vacation) and I never shut down browsers until I have to reboot for some reason. I hate rebooting so I avoid that if at all possible. Why would I want to have to login here 10 to 20 times a day as I come and go to the computer rather than using it for two hours at the same time every day and then not again until the next day at that same time? That makes no sense.
Makes no sense to YOU and I suppose others as well. No big deal to me. I've been doing this computer thing for a little over four decades. Logging in and logging out are second nature to me. To ME not logging out when finished makes no sense. To ME it is common security sense to do so. It does not matter how long I keep my browser running nor does it matter how long my systems are up and running. When I am done with this session I will logout of DSLR and move on to one of the many other forums I frequent. I log in and log out at each of them, each and every time. If I visit here again in the same browser session I will log back in. It is not difficult or inconvenient. I don't hate rebooting, it really easy and does not take long. ;)
Obviously, you must have a laptop and you shut down your computer frequently so using session cookies makes sense for you but not for those of us lucky enough to have (need) ONLY desktops that run 24/7.
FWIW, I do not currently (thinking about getting one though) own a laptop. I have four (will be adding a five before the end of the year) desktop computers networked together that run 24/7. I rarely reboot and only shutdown my computers when we loose power or leave for more than a few days. When I am done with my browser I close it. When I am done with my computer I log out. When I am ready to do something on my computer I log in again. As for cookies, I used to use CookieSafe, I dumped that as over kill. Fx's default handling is sufficient in my opinion; no third party; keep until close. I do have four exceptions but only for keeping some site specific settings and not keeping log in data.
Oh I leave my computers on 24/7 for two reasons; 1) because I want to, and 2) I run folding@home. Care to make any other assumptions? :)
--
Chris
Living in Paradise!!
reply
chrisretusn @ 9th Nov 01:23AM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
said by nwrickert :said by chrisretusn :
Why would anyone want to use cookies keep their login credentials? That is sort of like leaving the key to your house in the lock when you leave the house.
No, it isn't at all like leaving the key in the lock. It is more like having the key in your pocket, read to use.
I don't see it that way. With a key in you pocket ready to use, you still have to take action to get the key out, put it in the lock and open it. With a cookie you only have to turn the key and you are in.
The cookie becomes something of a password equivalent. In practice, the cookie value that keeps me logged into dslr is longer than my dslr password, and harder to guess. If somebody can hijack my browser to steal that cookie, then they might be able to hijack the browser and steal my password the next time I am logging in. Moreover, I can invalidate that cookie value by logging out from that session.
This is true with dslr, they use a combination of uid and session id. So if someone steals your cookie it's only good for your current session. This is not true with all sites, forums. Many of them store the actual password in the cookie. Most are encoded but some are plain text.
Staying logged in reduces reduces the frequency with which I have to present the actual password, and thus reduces the risk that the password could be stolen.
Unless the cookie uses the actual log in data. Each time you return to that site, your user name and password is passed if needed.
--
Chris
Living in Paradise!!
reply
nwrickert @ 9th Nov 01:40AM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
said by chrisretusn :
This is not true with all sites, forums. Many of them store the actual password in the cookie.
I agree that storing the actual password in a cookie is a bad idea.
--
AT&T Uverse; Zyxel NBG334W router (behind the 2wire gateway); openSuSE 11.0; firefox 3.0.15
reply
chrisretusn @ 9th Nov 01:47AM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
This is an interesting and enjoyable discussion. Still sort of wondering.
said by chrisretusn :
Are there any documented attacks using this particular cookies attack? I could not find any
--
Chris
Living in Paradise!!
reply
Mele20 @ 9th Nov 01:53AM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
All the logging in and out you describe would be awful to me.
I don't understand "finished". Who is EVER finished with a computer? I never am. It is an ongoing thing. I never shut down a browser because I have at least 50 tabs open and I don't want to wait for them all to load again! As for "this session" there is no such thing to me. It is all ONE session. I never close a session. The main difference between dialup and broadband is that when I got broadband, I was on 24/7 nothing ever shut down. I would never go back to dialup even if somehow it could be magically made to be as fast as my broadband because dialup would require ending sessions as you describe, etc. because you need to use the phone. The great thing about broadband is never being logged off, never closing your browsers, never closing several virtual machines with several browsers running on each of them all the time. The reason I hate to reboot the host machine is because I first have to end browsers and everything else I am doing on my virtal machines and then shut them down so I can then end everything on the host and reboot it. UGH.
I know my password for this site, but I generally do not remember ones for other sites and have to look them up. I don't allow any browser to keep my passwords. So, constantly logging in and out of a variety of sites would be a real hassle for me. Plus, I don't come here and do my thing and then go to another site to do my thing. I am at 5 different sites at the same time back and forth. We don't seem to use the internet in the same manner. It seems to me you are stuck in dialup mode of using the internet as I was that way by necessity when I had dialup. Obviously, that works fine for you but I would rather not have a computer than have to go back to dialup style use of the internet.
I have CookieSafe 3.2 on Firefox 3. That is a special version that kills favicon cookies and other junk that Fx past 1.5 violates our privacy with. Fx default for cookies is poor IMO. 1.5's handling is fine but from 2 on you have to spend a lot of time fixing all the privacy problems in Fx. That is the main reason I only put Opera 1010 on Windows 7.
--
When governments fear people, there is liberty. When the people fear the government, there is tyranny. Thomas Jefferson
reply
chrisretusn @ 9th Nov 02:20AM:
Re: New Cookie Attack - Google, Facebook, Others at Risk
said by Mele20 :
It seems to me you are stuck in dialup mode of using the internet as I was that way by necessity when I had dialup. Obviously, that works fine for you but I would rather not have a computer than have to go back to dialup style use of the internet.
Making more assumptions are we. Stuck in dial-up mode... you crack me up Mele20. LOL
I don't understand "finished". Who is EVER finished with a computer?
You don't sleep?
--
Chris
Living in Paradise!!
reply
Thank you for using lo-fi dslreports.com - report bugs
© 99-2009 silver matrix LLC