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

黑暗中的舞者:合成与评估用于盲跨站脚本的 Polyglot

Dancer in the Dark: Synthesizing and Evaluating Polyglots for Blind Cross-Site Scripting

Robin Kirchner, Jonas Möller, Marius Musch, David Klein, Konrad Rieck, Martin Johns

AI总结:

针对无反馈的盲 XSS 场景,本文提出合成可覆盖多种注入上下文的 polyglot 载荷,并在 Tranco Top 100,000 网站中发现 18 个后端系统的 20 个漏洞。

摘要:

跨站脚本(XSS)是 Web 应用中普遍且众所周知的安全问题。现有许多自动分析和检测这些漏洞的方法。然而,所有这些方法都要求能够获得应用程序的代码或反馈,以指导检测过程。在较大型的 Web 应用中,输入可能从前端传播到不向外部提供任何反馈的内部后端。此前的方法均不适用于这种被称为盲 XSS(BXSS)的场景。本文解决这一问题,并提出首个关于 BXSS 的全面研究。由于不存在反馈通道,我们通过盲代码执行来验证漏洞是否存在。为此,我们开发了一种合成 polyglot 的方法,polyglot 是可在所有常见注入上下文中执行的小型 XSS 载荷。其中七个 polyglot 已足以覆盖一个最先进的 XSS 测试平台。在对真实世界客户端漏洞的验证中,我们证明其 XSS 检测率与现有污点跟踪方法相当。基于这些 polyglot,我们对 Tranco Top 100,000 网站上的 BXSS 漏洞开展研究。我们在 18 个基于 Web 的后端系统中发现 20 个漏洞。这些发现证明了我们检测方法的有效性,并指出 Web 安全中一个在很大程度上尚未被探索的攻击面。

英文摘要:

Cross-Site Scripting (XSS) is a prevalent and well known security problem in web applications. Numerous methods to automatically analyze and detect these vulnerabilities exist. However, all of these methods require that either code or feedback from the application is available to guide the detection process. In larger web applications, inputs can propagate from a frontend to an internal backend that provides no feedback to the outside. None of the previous approaches are applicable in this scenario, known as blind XSS (BXSS). In this paper, we address this problem and present the first comprehensive study on BXSS. As no feedback channel exists, we verify the presence of vulnerabilities through blind code execution. For this purpose, we develop a method for synthesizing polyglots, small XSS payloads that execute in all common injection contexts. Seven of these polyglots are already sufficient to cover a state-of-the-art XSS testbed. In a validation on real-world client-side vulnerabilities, we show that their XSS detection rate is on par with existing taint tracking approaches. Based on these polyglots, we conduct a study of BXSS vulnerabilities on the Tranco Top 100,000 websites. We discover 20 vulnerabilities in 18 web-based backend systems. These findings demonstrate the efficacy of our detection approach and point at a largely unexplored attack surface in web security.

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

↑