The Remote on the Local: Exacerbating Web Attacks Via Service Workers Caches
Authors:
- 1 May 2021
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 432-443
Abstract
Service workers boost the user experience of modern web applications by taking advantage of the Cache API to improve responsiveness and support offline usage. In this paper, we present the first security analysis of the threats posed by this programming practice, identifying an attack with major security implications. In particular, we show how a traditional XSS attack can abuse the Cache API to escalate into a personin-the-middle attack against cached content, thus compromising its confidentiality and integrity. Remarkably, this attack enables new threats which are beyond the scope of traditional XSS. After defining the attack, we study its prevalence in the wild, finding that the large majority of the sites which register service workers using the Cache API are vulnerable as long as a single webpage in the same origin of the service worker is affected by an XSS. Finally, we propose a browser-side countermeasure against this attack, and we analyze its effectiveness and practicality in terms of security benefits and backward compatibility with existing web applications.Keywords
Funding Information
- European Research Council
- Austrian Science Fund
This publication has 10 references indexed in Scilit:
- Awakening the Web's Sleeper Agents: Misusing Service Workers for Privacy Leakage2021
- Complex Security Policy? A Longitudinal Analysis of Deployed Content Security Policies2020
- Cross-Origin State Inference (COSI) Attacks: Leaking Web Site States through XS-Leaks2020
- Don't Trust The Locals: Investigating the Prevalence of Persistent Client-Side Cross-Site Scripting in the Wild2019
- Tranco: A Research-Oriented Top Sites Ranking Hardened Against Manipulation2019
- Master of Web Puppets: Abusing Web Browsers for Persistent and Stealthy Computation2019
- Pride and Prejudice in Progressive Web Apps2018
- Code-Reuse Attacks for the Web2017
- On the Content Security Policy Violations due to the Same-Origin Policy2017
- Content Security Problems?2016