大多数网站不需要振动:提高浏览器安全性的成本效益方法
Most Websites Don't Need to Vibrate: A Cost-Benefit Approach to Improving Browser Security
摘要:
自1990年为超媒体传播而发明以来,现代Web浏览器已经积累了令人难以置信的广泛功能。这些功能中的许多功能通过启用新类型的Web应用程序而使用户受益。然而,有些功能也会给用户的隐私和安全带来风险,无论是通过实现错误、意外组合还是意外使用。目前还没有衡量这些成本和效益的通用方法。将访问限制为仅对在给定网站上提供所需功能所必需的功能,将允许用户在使用现代Web浏览器中存在的无数API时执行租赁特权原则。但是,通过增加限制获得的安全利益必须与破坏现有网站的风险相平衡。这项工作解决了这个问题的方法来权衡成本和效益,让网站默认访问每个浏览器功能。我们将收益建模为需要该功能以获得某些用户可见收益的网站数量,并将成本建模为与功能相关的CVE,代码行和学术攻击的数量。然后,我们将这种方法应用于现代浏览器中实现的74个Web API标准。我们发现,允许网站默认访问Web API的大部分内容会带来重大的安全和隐私风险,但几乎没有相应的好处。我们还引入了一个可配置的浏览器扩展,允许用户选择性地限制对每个站点的低收益,高风险功能的访问。我们使用两个强化的浏览器配置评估了我们的扩展,发现阻止74个标准中的15个标准避免了与以前的CVE相关的52.0%的代码路径,以及我们的度量确定的50.0%的实现代码,而不影响94.7%的测量网站的功能。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。