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

基于相对路径覆盖的大规模样式注入分析

Large-Scale Analysis of Style Injection by Relative Path Overwrite

Sajjad Arshad, Seyed Ali Mirheidari, Tobias Lauinger, Bruno Crispo, Engin Kirda, William Robertson

摘要:

相对路径覆盖(RPO)是一种最新的技术,即使在不存在样式接收器或标记注入漏洞的情况下,也可以将样式指令注入到站点中。它利用了浏览器和Web服务器如何解释相对路径的差异(即,路径混淆),以使HTML页面引用本身作为样式表;一个简单的文本注入漏洞以及浏览器在解析CSS资源时的宽容,导致攻击者能够注入将由浏览器解释的样式指令。尽管样式注入可能看起来没有脚本注入那么严重,但它已经被证明可以实现一系列攻击,包括秘密泄露。在本文中,我们提出了第一个大规模的网络研究,以衡量的流行程度和意义的风格注入使用RPO。我们的工作表明,Alexa Top 10,000中约有9%的网站包含至少一个易受攻击的页面,其中超过三分之一的页面可以被利用。我们详细分析了成功利用的各种障碍,并提出了补救建议。与脚本注入相比,存在相对简单的对策来减轻样式注入。然而,我们发现一系列流行的内容管理系统(CMS)可被利用,这证明人们似乎对这种攻击媒介知之甚少。

英文摘要:

Relative Path Overwrite (RPO) is a recent technique to inject style directives into sites even when no style sink or markup injection vulnerability is present. It exploits differences in how browsers and web servers interpret relative paths (i.e., path confusion) to make a HTML page reference itself as a stylesheet; a simple text injection vulnerability along with browsers' leniency in parsing CSS resources results in an attacker's ability to inject style directives that will be interpreted by the browser. Even though style injection may appear less serious a threat than script injection, it has been shown that it enables a range of attacks, including secret exfiltration. In this paper, we present the first large-scale study of the Web to measure the prevalence and significance of style injection using RPO. Our work shows that around 9% of the sites in the Alexa Top 10,000 contain at least one vulnerable page, out of which more than one third can be exploited. We analyze in detail various impediments to successful exploitation, and make recommendations for remediation. In contrast to script injection, relatively simple countermeasures exist to mitigate style injection. However, there appears to be little awareness of this attack vector as evidenced by a range of popular Content Management Systems (CMSes) that we found to be exploitable.

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

↑