Modern Browsers Are Undefended Against Cookie-based MITM Attacks Over HTTPS
An anonymous reader writes: An advisory from CERT warns that all web-browsers, including the latest versions of Chrome, Firefox, Safari and Opera, have 'implementation weaknesses' which facilitate attacks on secure (HTTPS) sites via the use of cookies, and that implementing HSTS will not secure the vulnerability until browsers stop accepting cookies from sub-domains of the target domain. This attack is possible because although cookies can be specified as being HTTPS-specific, there is no mechanism to determine where they were set in the first place. Without this chain of custody, attackers can 'invent' cookies during man-in-the-middle (MITM) attacks in order to gain access to confidential session data.
It's not clear from the article or from the CERT page linked, how the injecting of a cookie exposes data from the secured connection.
If you're concerned about this attack, it can only occur when an "adversary" controls the subdomain of a site, or if you visit the unencrypted, HTTP version of the site while your connection is being man-in-the-middled. Avoid sites that host user content on subdomains, e.g. http://xx_bluntsmoka420_xx.example.com/, and always use the HTTPS version of a site; HTTPS Everywhere helps https://www.eff.org/Https-everywhere
I think Cookie Monster would like a word with you.
I want to know how to get the code from HTTPS and it is really sounds crazy man !
No mention of Edge. Does that mean it's clean?
Is there any other way of providing the same functionality without cookies?
I haven't been able to decipher any of your posts.
NSA
"If any question why we died, Tell them because our fathers lied."
Of course about that you really getting bore us brother. Browser cookie is a best stuff to crack a login access
Yes, it is not encouraged much in slashdot, but still I clicked on the link provided in the summary to, gasp!, read the fine article. That site popped a banner that said, "This site is using cookies to improve your web experience!".
sed -e 's/Chuck Norris/Rajnikant/g' joke > fact
You are all chickens. Chickens say cluck. CLUCK! CLUCK! Cluck chickens CLUCK! Cluck says the chicken. YOU COOKIE CHICKENS!!
To mitigate it browsers should present only the cookies set by a site back to that site. This might break lots of sites. It is very common for the sites to set a cookie and then load a page in another domain which reads the cookie. Many authentication schemes depend on this behavior.
Even browsers start authenticating cookie paths or maintain tables of which cookies came from which site and maintain them in different sandboxes, many big sites would not work right.
sed -e 's/Chuck Norris/Rajnikant/g' joke > fact
Cryptographically sign your cookies based on hashing it combined with a secret only the server knows.
e.g. signed_payload = hash(secret + hash(secret + cookie_payload))
Then it doesn't matter whether the cookie is set on the insecure bit, or the secure bit, or by random attackers. You simply verify the cookie before you trust it. If it wasn't signed with the secret, it ain't safe.
This still gets you all the niceties of cookies, but you use a wrapper function that tests the signature on the cookie before it is used.
This is not new stuff.
On a server side - hash IP + Random UID, then challenge cookie with every important request. Very hard, but not impossible to defeat. If you want perfect protection - implement TLS session binding.
I noticed that Google pushed out a new update to Chrome (45.0.2454.101 m) just today. I wonder did that update fix this vulnerability.
Sorry, am I missing something? These vulnerabilities are plainly obvious in the specs. Am I really the only one who knew this?
The only thing that really surprises me is that big names like Google and Amazon have known vulns of this kind...
That page asks me to allow cookies.....