WIPIVERSE All articles

Evercookie

Evercookie is an open-source JavaScript application programming interface (API) that identifies and reproduces intentionally deleted cookies on a client's browser storage. This behavior is known as a "zombie cookie." It was created by Samy Kamkar in 2010 to demonstrate the potential infiltration capabilities of websites that employ respawning cookie technology. Websites that adopt this mechanism can identify users even if those users attempt to delete previously stored cookies.

Background

Websites commonly use data storage mechanisms—including HTTP cookies, Flash cookies (Local Shared Objects), and HTML5 storage—to generate a unique identifier when a user first visits, storing it on the user's browser or local storage. On subsequent visits, the website reads this identifier to recognize the user, save preferences, and display targeted advertising. Due to privacy concerns, all major browsers include mechanisms for deleting and/or refusing cookies.

In response to users' increasing tendency to delete or refuse cookies, some websites began employing methods to circumvent cookie deletion. Beginning around 2009, research teams found that popular websites used Flash cookies, ETags, and various other storage mechanisms to rebuild cookies deleted by users, including sites such as Hulu, Fox News, and Spotify. In 2010, Samy Kamkar built the Evercookie project to further illustrate tracking mechanisms that respawn data across various storage systems on browsers.

Description

Evercookie allows website authors to identify users even after those users have attempted to delete cookies. Kamkar released v0.4 beta of the Evercookie on September 13, 2010, as an open-source project. Evercookie can respawn deleted HTTP cookies by storing cookie data across multiple storage systems typically exposed by web browsers. When a browser visits a website using the Evercookie API, the web server generates an identifier and stores it across various storage mechanisms available on that browser. If a user removes some but not all of the stored identifiers and revisits the website, the web server retrieves the identifier from storage areas that the user failed to delete, then restores the identifier to the previously cleared storage areas.

According to Kamkar's list, 17 storage mechanisms could be used by the v0.4 beta Evercookie when available on browsers, including:

  • Standard HTTP cookies
  • HTTP Strict Transport Security (HSTS)
  • Local shared objects (Flash cookies)
  • Silverlight Isolated Storage
  • Storing cookies encoded in RGB values of auto-generated, force-cached PNG images (read via the HTML5 Canvas tag)
  • Storing cookies in Web history
  • Storing cookies in HTTP ETags
  • Storing cookies in Web cache
  • window.name caching
  • Internet Explorer userData storage
  • HTML5 Session Web storage
  • HTML5 Local Web storage
  • HTML5 Global Storage
  • HTML5 Web SQL Database (via SQLite)
  • HTML5 IndexedDB
  • Java JNLP PersistenceService
  • A Java exploit (CVE-2013-0422)

Kamkar stated that he did not intend for the Evercookie project to violate internet user privacy or to be sold for commercial use. However, it has served as inspiration for commercial websites that later implemented similar mechanisms to restore user-deleted cookies. The project is open source, making its code publicly accessible and usable for any purpose.

Applications and Research

A research team from the Slovak University of Technology proposed a mechanism for search engines to infer users' intended search terms and produce personalized search results. The team built a metadata-based user interest model using Evercookie to enhance search result personalization, relying on Evercookie's persistence to address the problem of users deleting traditional cookies.

In 2014, a research team at Princeton University conducted a large-scale study of persistent tracking tools, including Evercookie, canvas fingerprinting, and cookie syncing. The team crawled and analyzed the top 100,000 Alexa-ranked websites and detected IndexedDB incorporated into an Evercookie mechanism used by Weibo.com—described as the first detected commercial use of IndexedDB for this purpose. The research also found that cookie syncing was used in conjunction with Evercookie, allowing data sharing between different storage mechanisms.

Notable Incidents

KISSmetrics privacy lawsuit

In July 2011, researchers at the University of California, Berkeley found that KISSmetrics, a third-party marketing analytics provider, used HTTP cookies, Flash cookies, ETags, and other storage mechanisms to respawn deleted user data on popular websites such as Hulu and Spotify. The report was described as the first observation of ETag usage in commercial settings. Following the report's publication, Hulu and Spotify suspended their use of KISSmetrics. Two consumers filed a lawsuit against KISSmetrics over privacy violations. On October 19, 2012, KISSmetrics agreed to pay over $500,000 to settle the accusation and committed to refrain from using Evercookie.

NSA Tor tracking

In 2013, an internal National Security Agency (NSA) presentation leaked by Edward Snowden suggested Evercookie's use in government surveillance to track Tor network users. The Tor Blog responded by stating that the Tor Browser Bundle and Tails operating system provide protections against Evercookie.

Mitigation

By the late 2010s, most modern browsers implemented methods to remove Evercookie data with minimal effort—notably closing the Evercookie tab and then clearing website data in the browser. Earlier mitigation included a Firefox browser plugin named "Anonymizer Nevercookie" released in 2010.

Browse

More topics to explore

    Browse all articles