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

Context-Auditor:上下文敏感的内容注入缓解

Context-Auditor: Context-sensitive Content Injection Mitigation

Faezeh Kalantari, Mehrnoosh Zaeifi, Tiffany Bao, Ruoyu Wang, Yan Shoshitaishvili, Adam Doupé

摘要:

跨站脚本(XSS)是过去十年中Web应用程序中最常见的漏洞类别。许多研究都集中在为这个问题构建漏洞利用缓解防御,但没有技术在面对高级攻击时提供足够的保护。一种绕过XSS缓解措施的技术是无脚本攻击:一种使用CSS和HTML注入(以及其他选项)渗透数据的内容注入技术。在研究这种技术和其他技术时,我们意识到,所有内容注入漏洞的利用(不仅包括XSS和无脚本攻击,还包括命令注入和其他几个漏洞)的共同属性是受害者程序的解析引擎中的意外上下文切换,这是由不受信任的用户输入引起的。在本文中,我们提出了Context-Auditor,一种新的技术,利用这种洞察力来识别内容注入漏洞,从XSS到无脚本攻击和命令注入。我们实现了Context-Auditor作为一个通用的解决方案,内容注入利用检测问题的形式灵活,独立的检测模块。我们将Context-Auditor的实例部署为(1)浏览器插件,(2)Web代理,(3)Web服务器插件,以及(4)作为潜在可注入系统端点的包装器。由于Context-Auditor针对的是内容注入攻击的根本原因(更具体地说,针对我们的原型、XSS攻击、无脚本攻击和命令注入),我们的评估结果表明,Context-Auditor可以识别和阻止现代防御无法识别和阻止的内容注入攻击,同时保持低吞吐量开销并避免误报。

英文摘要:

Cross-site scripting (XSS) is the most common vulnerability class in web applications over the last decade. Much research attention has focused on building exploit mitigation defenses for this problem, but no technique provides adequate protection in the face of advanced attacks. One technique that bypasses XSS mitigations is the scriptless attack: a content injection technique that uses (among other options) CSS and HTML injection to infiltrate data. In studying this technique and others, we realized that the common property among the exploitation of all content injection vulnerabilities, including not just XSS and scriptless attacks, but also command injections and several others, is an unintended context switch in the victim program's parsing engine that is caused by untrusted user input. In this paper, we propose Context-Auditor, a novel technique that leverages this insight to identify content injection vulnerabilities ranging from XSS to scriptless attacks and command injections. We implemented Context-Auditor as a general solution to content injection exploit detection problem in the form of a flexible, stand-alone detection module. We deployed instances of Context-Auditor as (1) a browser plugin, (2) a web proxy (3) a web server plugin, and (4) as a wrapper around potentially-injectable system endpoints. Because Context-Auditor targets the root cause of content injection exploitation (and, more specifically for the purpose of our prototype, XSS exploitation, scriptless exploitation, and command injection), our evaluation results demonstrate that Context-Auditor can identify and block content injection exploits that modern defenses cannot while maintaining low throughput overhead and avoiding false positives.

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

↑