- tl;dr sec
- Posts
- Inducing Amnesia in Browsers: the Clear Site Data Header
Inducing Amnesia in Browsers: the Clear Site Data Header
The new Clear-Site-Data HTTP header allows a website to tell a user’s browser to clear various browsing data (cookies, storage, cache, executionContexts) associated with the website.
The new Clear-Site-Data HTTP header allows a website to tell a user’s browser to clear various browsing data (cookies, storage, cache, executionContexts) associated with the website.
This enables websites to have more fine-grained control over the data its users store in their browser. This can be used to ensure that certain sensitive info is not persistently stored, to wipe traces of having visited the site (for example, users living under a regime visiting an “unapproved” site), or for a site affected by a persistent XSS vulnerability to reset users to a “clean” state.
From an offensive point of view, the Clear-Site-Data
header could be used to:
Wipe traces of a user having visited a malicious site (e.g. drive-by-download malware), making incident response more difficult.
Flush cookies in competing subdomains, making session fixation attacks easier.
Security is ultimately about reducing risk, sustainably, at the right cost.