Menu
Cookie handling in browsers can break HTTPS security

Cookie handling in browsers can break HTTPS security

The lack of cookie integrity verification in browsers can allow hackers to extract information from encrypted Web connections.

Cookies, the files that websites create in browsers to remember logged-in users and track other information about them, could be abused by attackers to extract sensitive information from encrypted HTTPS connections.

The issue stems from the fact that the HTTP State Management standard, or RFC 6265, which defines how cookies should be created and handled, does not specify any mechanism for isolating them or checking their integrity.

As such, Web browsers don't always authenticate the domains that set cookies. That allows malicious attackers to inject cookies via plain HTTP connections that would later be transmitted for HTTPS connections instead of those set by the HTTPS sites themselves, the CERT Coordination Center (CERT/CC) at Carnegie Mellon University said in an advisory Thursday.

One of the reasons why this happens is because subdomains can set cookies that are valid for their parent domains or other subdomains.

For example, if subdomain.domain.com sets a cookie with the domain attribute of domain.com, that cookie might be sent by the browser to subdomain2.domain.com as well. The site hosted on subdomain2 might not be able to differentiate between its own cookie and the rogue one.

Cookies are also not isolated by port number or scheme. A server can host multiple websites accessible via the same domain, but on different port numbers. Those websites will be able to read and write each other's cookies.

All these inconsistencies can allow man-in-the-middle attackers to perform so-called cookie injection or cookie tossing attacks that can be used to extract sensitive information from HTTPS connections.

A team of researchers from University of California, Berkeley, Tsinghua University in Beijing, the International Computer Science Institute and Microsoft tested the implications of such attacks on different high-profile HTTPS websites and presented their findings in August at the USENIX conference.

They found that they could hijack users' chat gadgets in the Gmail interface, steal Google search histories, steal credit card information on China UnionPay's website, hijack deposits on JD.com, hijack Google OAuth and BitBucket associations, track and manipulate shopping carts on e-commerce sites, track purchase history on Amazon.com and more.

"Some web browser vendors have noted previous attempts at more secure cookie management have been foiled due to the lack of a widely implemented standard," the CERT/CC said in its advisory.

Until the standards bodies come up with a solution, the issue can be mitigated if websites use the HTTP Strict Transport Security (HSTS) mechanism to force browsers to always access them over secure HTTPS connections.

The latest versions of all major browsers support HSTS, but in order for this mechanism to be effective against cookie injection attacks, websites also need to implement it.

Unfortunately, HSTS adoption across HTTPS-enabled websites remains low. According to the latest statistics from the SSL Pulse project, only 4.5 percent of the Internet's top 145,000 HTTPS websites currently support HSTS.

Follow Us

Join the New Zealand Reseller News newsletter!

Error: Please check your email address.

Featured

Slideshows

Reseller News launches inaugural Hall of Fame lunch

Reseller News launches inaugural Hall of Fame lunch

Reseller News welcomed 2015 and 2016 inductees - Darryl Swann, Dave Rosenberg, Gary Bigwood, Keith Watson, Mike Hill and Scott Green - to the inaugural Reseller News Hall of Fame lunch, held at the French Cafe in Auckland. The inductees discussed how the channel can collectively work together to benefit New Zealand, the Kiwi skills shortage and the future of the industry. Photos by Maria Stefina.

Reseller News launches inaugural Hall of Fame lunch
Educating from the epicentre - Why distributors are the pulse checkers of the channel

Educating from the epicentre - Why distributors are the pulse checkers of the channel

​As the channel changes and industry voices deepen, the need for clarity and insight heightens. Market misconceptions talk of an “under pressure” distribution space, with competitors in that fateful “race for relevance” across New Zealand. Amidst the cliched assumptions however, distribution is once again showing its strength, as a force to be listened to, rather than questioned. Traditionally, the role was born out of a need for vendors and resellers to find one another, acting as a bridge between the testing lab and the marketplace. Yet despite new technologies and business approaches shaking the channel to its very core, distributors remain tied to the epicentre - providing the voice of reason amidst a seismic industry shift. In looking across both sides of the vendor and partner fences, the middle concept of the three-tier chain remains centrally placed to understand the metrics of two differing worlds, as the continual pulse checkers of the local channel. This exclusive Reseller News Roundtable, in association with Dicker Data and rhipe, examined the pivotal role of distribution in understanding the health of the channel, educating from the epicentre as the market transforms at a rapid rate.

Educating from the epicentre - Why distributors are the pulse checkers of the channel
Kiwi channel reunites as After Hours kicks off 2017

Kiwi channel reunites as After Hours kicks off 2017

After Hours made a welcome return to the channel social calendar last night, with a bumper crowd of distributors, vendors and resellers descending on The Jefferson in Auckland to kickstart 2017. Photos by Maria Stefina.

Kiwi channel reunites as After Hours kicks off 2017
Show Comments