Now on Demand Ransomware Resilience & Recovery Summit - All Sessions Available
Connect with us

Hi, what are you looking for?

SecurityWeekSecurityWeek

Vulnerabilities

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 example.com that override the real cookie for www.example.com 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.

Advertisement. Scroll to continue reading.
Written By

Click to comment

Trending

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts.

Join the session as we discuss the challenges and best practices for cybersecurity leaders managing cloud identities.

Register

SecurityWeek’s Ransomware Resilience and Recovery Summit helps businesses to plan, prepare, and recover from a ransomware incident.

Register

People on the Move

MSSP Dataprise has appointed Nima Khamooshi as Vice President of Cybersecurity.

Backup and recovery firm Keepit has hired Kim Larsen as CISO.

Professional services company Slalom has appointed Christopher Burger as its first CISO.

More People On The Move

Expert Insights

Related Content

Vulnerabilities

Less than a week after announcing that it would suspended service indefinitely due to a conflict with an (at the time) unnamed security researcher...

Data Breaches

OpenAI has confirmed a ChatGPT data breach on the same day a security firm reported seeing the use of a component affected by an...

IoT Security

A group of seven security researchers have discovered numerous vulnerabilities in vehicles from 16 car makers, including bugs that allowed them to control car...

Vulnerabilities

A researcher at IOActive discovered that home security systems from SimpliSafe are plagued by a vulnerability that allows tech savvy burglars to remotely disable...

Risk Management

The supply chain threat is directly linked to attack surface management, but the supply chain must be known and understood before it can be...

Cybercrime

Patch Tuesday: Microsoft calls attention to a series of zero-day remote code execution attacks hitting its Office productivity suite.

Vulnerabilities

Patch Tuesday: Microsoft warns vulnerability (CVE-2023-23397) could lead to exploitation before an email is viewed in the Preview Pane.

IoT Security

A vulnerability affecting Dahua cameras and video recorders can be exploited by threat actors to modify a device’s system time.