Security Experts:

Connect with us

Hi, what are you looking for?



Cookies Render HTTPS Sessions Vulnerable to Data Leaks

A recently discovered vulnerability in cookies could enable an attacker to access private information from HTTPS sessions.

A recently discovered vulnerability in cookies could enable an attacker to access private information from HTTPS sessions.

According to the vulnerability note published by CERT on Thursday, cookies that have been established via HTTP requests represent a security flaw for HTTPS sessions, due to the fact that they do not provide “integrity guarantees for sibling domains”. 

The advisory explains that web browsers do not always authenticate the domain that is setting a cookie, which could let an attacker set a cookie that could later be used via an HTTPS connection instead of the cookie set by the actual site. By exploiting other vulnerabilities in the server, the attacker-controlled cookie can be used to access private information. 

Cookie Vulnerability“A malicious attacker can utilize this to set a cookie that is later used via an HTTPS connection instead of the cookie set by the actual site; for example, an attacker may set cookies for that override the real cookie for when the victim is loading HTTPS content,” the CERT advisory explains. 

Details of the vulnerability were disclosed by researchers in a paper published at USENIX Security 2015, which warned that while there are cookies that contain a secure flag indicating that it should be sent only over an HTTPS connection, there is no flag to indicate how a cookie was set. As a result, attackers conducting man-in-the-middle attacks on an HTTP session can inject cookies that can be attached to subsequent HTTPS connections.

The vulnerability is said to have been found in popular websites such as Google and Bank of America, and to affect major web browsers, including Chrome, Firefox, Internet Explorer, and Safari. A solution to the issue would be safer handling of cookies through updating the same origin policy for cookies, CERT said.

To mitigate the attack, CERT advises website operators to deploy HSTS on the top-level domain they control, and to use the includeSubDomains option, which limits an attacker’s ability to set top-level cookies capable of overriding the subdomain ones. End-users should update their browsers to ensure that they have full HSTS support, CERT said.

Security vulnerabilities related to cookies are not new.

IETF’s HTTP State Management Mechanism, published in April 2011, explains that when it comes to sibling domains and their subdomains, it is often possible that one server cannot distinguish between a cookie set by the other server and one set by itself. Thus, one server can be used to leverage an attack against the other. 

Another issue with cookies is the fact that they do not offer isolation by port, which means that, if a cookie is readable/writable by a service running on a port of a server, it is also readable/writable to services running on other ports. Moreover, cookies used with HTTP and HTTPS schemes for a given host can also be used with other schemes, including ftp and gopher.

Written By

Click to comment

Expert Insights

Related Content

Cloud Security

VMware vRealize Log Insight vulnerability allows an unauthenticated attacker to take full control of a target system.

Mobile & Wireless

Apple rolled out iOS 16.3 and macOS Ventura 13.2 to cover serious security vulnerabilities.

Mobile & Wireless

Technical details published for an Arm Mali GPU flaw leading to arbitrary kernel code execution and root on Pixel 6.

IoT Security

Lexmark warns of a remote code execution (RCE) vulnerability impacting over 120 printer models, for which PoC code has been published.

Mobile & Wireless

Apple’s iOS 12.5.7 update patches CVE-2022-42856, an actively exploited vulnerability, in old iPhones and iPads.


Security researchers have observed an uptick in attacks targeting CVE-2021-35394, an RCE vulnerability in Realtek Jungle SDK.

Email Security

Microsoft is urging customers to install the latest Exchange Server updates and harden their environments to prevent malicious attacks.


Google has awarded more than $25,000 to the researchers who reported the vulnerabilities patched with the release of the latest Chrome update.