arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1611.02875cs.CR
收藏

基于同源策略的内容安全策略违规问题研究

On the Content Security Policy Violations due to the Same-Origin Policy

Dolière Francis Somé, Nataliia Bielova, Tamara Rezk

摘要:

现代浏览器实现了不同的安全策略,例如内容安全策略(CSP),一种旨在减轻流行的Web漏洞的机制,以及同源策略(SOP),一种管理网页资源之间交互的机制。在这项工作中,我们描述了如何CSP可能会违反由于SOP时,一个页面包含一个嵌入式iframe从同一来源。我们分析了来自10,000个顶级Alexa网站的100万个页面,并报告说,目前至少有31.1%的启用CSP的页面可能容易受到CSP违规的影响。进一步考虑现实世界的情况下,这些页面涉及同源嵌套浏览上下文,我们发现,在至少23.5%的情况下,CSP违规是可能的。在我们的研究中,我们还发现了在srcdoc沙箱iframe中执行CSP的浏览器实现之间的分歧,这实际上揭示了基于Gecko的浏览器CSP实现中的问题。为了改善安全机制的问题冲突,我们讨论了避免CSP违规的措施。

英文摘要:

Modern browsers implement different security policies such as the Content Security Policy (CSP), a mechanism designed to mitigate popular web vulnerabilities, and the Same Origin Policy (SOP), a mechanism that governs interactions between resources of web pages. In this work, we describe how CSP may be violated due to the SOP when a page contains an embedded iframe from the same origin. We analyse 1 million pages from 10,000 top Alexa sites and report that at least 31.1% of current CSP-enabled pages are potentially vulnerable to CSP violations. Further considering real-world situations where those pages are involved in same-origin nested browsing contexts, we found that in at least 23.5% of the cases, CSP violations are possible. During our study, we also identified a divergence among browsers implementations in the enforcement of CSP in srcdoc sandboxed iframes, which actually reveals a problem in Gecko-based browsers CSP implementation. To ameliorate the problematic conflicts of the security mechanisms, we discuss measures to avoid CSP violations.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑