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

使用客户端模板精确检测和缓解XSS

Precise XSS detection and mitigation with Client-side Templates

Jose Carlos Pazos, Jean-Sebastien Legare, Ivan Beschastnikh, William Aiello

摘要:

我们提出了XSnare,一个完全的客户端XSS解决方案,实现为Firefox扩展。我们的方法利用了Web应用程序的HTML模板内容的现有知识,以及DOM中丰富的上下文来阻止XSS攻击。XSnare通过使用漏洞利用描述数据库来防止XSS漏洞利用,这些数据库是在以前记录的CVE的帮助下编写的。XSS的CVE广泛可用,是解决零日漏洞的主要方法之一。XSnare可以有效地找出HTML中潜在的漏洞注入点,并对内容进行清理,以防止恶意负载出现在DOM中。XSnare可以在应用程序开发人员发布补丁之前和服务器运营商应用补丁之前保护应用程序用户。我们对最近81个与XSS攻击相关的CVE进行了评估,发现它可以抵御94.2%的这些漏洞。据我们所知,XSnare是XSS的第一个保护机制,它是特定于应用程序的,并且基于公开的CVE信息。我们表明,XSnare的特异性保护用户免受利用规避其他更通用的反XSS方法。我们的性能评估表明,我们的扩展的开销在网页加载时间是小于10%的网站在Moz的500强名单中的72.6%。

英文摘要:

We present XSnare, a fully client-side XSS solution, implemented as a Firefox extension. Our approach takes advantage of available previous knowledge of a web application's HTML template content, as well as the rich context available in the DOM to block XSS attacks. XSnare prevents XSS exploits by using a database of exploit descriptions, which are written with the help of previously recorded CVEs. CVEs for XSS are widely available and are one of the main ways to tackle zero-day exploits. XSnare effectively singles out potential injection points for exploits in the HTML and sanitizes content to prevent malicious payloads from appearing in the DOM. XSnare can protect application users before application developers release patches and before server operators apply them. We evaluated XSnare on 81 recent CVEs related to XSS attacks, and found that it defends against 94.2% of these exploits. To the best of our knowledge, XSnare is the first protection mechanism for XSS that is application-specific, and based on publicly available CVE information. We show that XSnare's specificity protects users against exploits which evade other, more generic, anti-XSS approaches. Our performance evaluation shows that our extension's overhead on web page loading time is less than 10% for 72.6% of the sites in the Moz Top 500 list.

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

↑