[Paper Review] Most Websites Don't Need to Vibrate: A Cost-Benefit Approach to Improving Browser Security
This paper proposes a cost-benefit methodology to evaluate browser API features, identifying that most websites do not require default access to many Web APIs. By blocking 15 low-benefit, high-risk APIs, the authors achieve 52.0% reduction in CVE-related code paths and 50.0% reduction in implementation code, while breaking only 5.3% of websites, using a configurable ES6 Proxy-based browser extension for fine-grained access control.
Modern web browsers have accrued an incredibly broad set of features since being invented for hypermedia dissemination in 1990. Many of these features benefit users by enabling new types of web applications. However, some features also bring risk to users' privacy and security, whether through implementation error, unexpected composition, or unintended use. Currently there is no general methodology for weighing these costs and benefits. Restricting access to only the features which are necessary for delivering desired functionality on a given website would allow users to enforce the principle of lease privilege on use of the myriad APIs present in the modern web browser. However, security benefits gained by increasing restrictions must be balanced against the risk of breaking existing websites. This work addresses this problem with a methodology for weighing the costs and benefits of giving websites default access to each browser feature. We model the benefit as the number of websites that require the feature for some user-visible benefit, and the cost as the number of CVEs, lines of code, and academic attacks related to the functionality. We then apply this methodology to 74 Web API standards implemented in modern browsers. We find that allowing websites default access to large parts of the Web API poses significant security and privacy risks, with little corresponding benefit. We also introduce a configurable browser extension that allows users to selectively restrict access to low-benefit, high-risk features on a per site basis. We evaluated our extension with two hardened browser configurations, and found that blocking 15 of the 74 standards avoids 52.0% of code paths related to previous CVEs, and 50.0% of implementation code identified by our metric, without affecting the functionality of 94.7% of measured websites.
Motivation & Objective
- To address the lack of a systematic methodology for evaluating the security vs. usability trade-offs of browser API features.
- To quantify the benefit of each Web API in terms of website functionality and the cost in terms of vulnerabilities, code complexity, and academic exploits.
- To develop a user-configurable browser extension that selectively disables high-cost, low-benefit APIs on a per-site basis.
- To evaluate the security and usability impact of hardened browser configurations that restrict access to selected Web APIs.
- To demonstrate that significant security improvements can be achieved without breaking the majority of websites.
Proposed method
- The authors model the benefit of each Web API as the number of websites requiring it for visible functionality.
- They quantify the cost using the number of CVEs, lines of code, and academic attacks associated with each API.
- A configurable browser extension is built using ES6 Proxy objects to dynamically disable JavaScript APIs without breaking existing code.
- Two hardened browser configurations are created by identifying and blocking 15 low-benefit, high-risk Web API standards.
- The extension is evaluated on the 200 most popular Alexa sites and a random sample of the rest, comparing breakage rates with NoScript and Tor Browser Bundle.
- The approach allows per-site policy configuration, enabling users to selectively allow features for trusted origins.
Experimental results
Research questions
- RQ1Which Web API standards provide minimal benefit to the majority of websites but pose significant security and privacy risks?
- RQ2To what extent can blocking selected Web APIs reduce exposure to known vulnerabilities and attack surfaces without breaking existing websites?
- RQ3How does the usability of a hardened browser configuration compare to existing privacy-focused tools like NoScript and Tor Browser Bundle?
- RQ4Can a dynamic, user-configurable extension based on ES6 Proxies effectively enforce fine-grained API access control without breaking functional code?
- RQ5What are the trade-offs between security hardening and website compatibility when selectively restricting browser features?
Key findings
- Blocking 15 of the 74 Web API standards reduced 52.0% of code paths related to previous CVEs and 50.0% of implementation code, as measured by the authors' metric.
- The hardened configurations broke only 5.3% of the 200 most popular websites and 5.3% of a random sample from the Alexa 10k, outperforming both NoScript and Tor Browser Bundle in compatibility.
- The majority of websites (94.7%) functioned normally when high-risk, low-benefit APIs such as High Resolution Time Level 2, Canvas, and Web Audio were blocked by default.
- Academic research has demonstrated that several of the blocked APIs—like Canvas and Web Audio—have been leveraged in fingerprinting and side-channel attacks, validating the risk assessment.
- The ES6 Proxy-based feature firewall successfully disabled APIs without breaking existing code that expected them to be available, demonstrating feasibility of runtime interception.
- The authors identify the Battery API, High Resolution Time Level 2, Canvas, and Web Audio APIs as strong candidates for removal from default browser access due to high risk and low benefit.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.