COOKIEGUARD: Characterizing and Isolating the First-Party Cookie Jar
Pouneh Nikkhah Bahrami, Aurore Fass, Zubair Shafiq

TL;DR
This paper presents CookieGuard, a new browser-based mechanism that isolates first-party cookies per script-origin, addressing significant cross-domain cookie exfiltration and modification risks uncovered through large-scale measurement of 20,000 websites.
Contribution
It provides the first large-scale measurement of cross-domain cookie access and introduces CookieGuard, a practical enforcement mechanism for stronger cookie isolation in browsers.
Findings
56% of websites have third-party scripts exfiltrating cookies
32% allow unauthorized overwriting or deletion of cookies
CookieGuard blocks unauthorized cookie operations with minimal site disruption
Abstract
As third-party cookies are being phased out or restricted by major browsers, first-party cookies are increasingly repurposed for tracking. Prior work has shown that third-party scripts embedded in the main frame can access and exfiltrate first-party cookies, including those set by other third-party scripts. However, existing browser security mechanisms, such as the Same-Origin Policy, Content Security Policy, and third-party storage partitioning, do not prevent this type of cross-domain interaction within the main frame. While recent studies have begun to highlight this issue, there remains a lack of comprehensive measurement and practical defenses. In this work, we conduct the first large-scale measurement of cross-domain access to first-party cookies across 20,000 websites. We find that 56 percent of websites include third-party scripts that exfiltrate cookies they did not set, and…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsVideo Analysis and Summarization
