自2004年首次发布“OWASP Top 10”以来,跨站脚本(XSS)漏洞一直是Web应用程序安全漏洞的前5名。黑盒漏洞扫描器被广泛用于自动复制(XSS)攻击。尽管技术复杂和先进,以前的工作表明,黑匣子扫描器错过了一个不可忽视的部分漏洞,并报告不存在,不可利用或无趣的漏洞。不幸的是,这些结果甚至适用于XSS漏洞,如果与逻辑缺陷相比,这些漏洞相对容易触发。黑盒扫描仪在这方面还没有深入研究:准确了解扫描仪如何检测XSS可以提供有用的见解,以了解其局限性,设计更好的检测方法。在本文中,我们提出并讨论了一个详细的和系统的研究结果6黑盒网络扫描仪(专有和开源),我们进行了协调与各自的供应商。为此,我们开发了一个自动化工具来(1)提取每个扫描仪使用的有效载荷,(2)提取产生每个有效载荷的“模板”,(3)根据质量指标对其进行评估,以及(4)执行跨扫描仪分析。与以前的工作不同,我们的测试床应用程序包含大量的XSS漏洞,包括DOM XSS,它逐渐被改造以适应没有触发漏洞的有效负载。我们的分析揭示了一个高度分散的场景。扫描仪表现出各种各样的不同的有效载荷,模糊和突变的有效载荷的非统一的方法,和一个非常不同的检测效果。
英文摘要:
Since the first publication of the "OWASP Top 10" (2004), cross-site scripting (XSS) vulnerabilities have always been among the top 5 web application security bugs. Black-box vulnerability scanners are widely used in the industry to reproduce (XSS) attacks automatically. In spite of the technical sophistication and advancement, previous work showed that black-box scanners miss a non-negligible portion of vulnerabilities, and report non-existing, non-exploitable or uninteresting vulnerabilities. Unfortunately, these results hold true even for XSS vulnerabilities, which are relatively simple to trigger if compared, for instance, to logic flaws.
Black-box scanners have not been studied in depth on this vertical: knowing precisely how scanners try to detect XSS can provide useful insights to understand their limitations, to design better detection methods. In this paper, we present and discuss the results of a detailed and systematic study on 6 black-box web scanners (both proprietary and open source) that we conducted in coordination with the respective vendors. To this end, we developed an automated tool to (1) extract the payloads used by each scanner, (2) distill the "templates" that have originated each payload, (3) evaluate them according to quality indicators, and (4) perform a cross-scanner analysis. Unlike previous work, our testbed application, which contains a large set of XSS vulnerabilities, including DOM XSS, was gradually retrofitted to accomodate for the payloads that triggered no vulnerabilities.
Our analysis reveals a highly fragmented scenario. Scanners exhibit a wide variety of distinct payloads, a non-uniform approach to fuzzing and mutating the payloads, and a very diverse detection effectiveness.
XSS for the Masses: Integrating Security in a Web Programming Course using a Security Scanner
网络安全教育被认为是本科计算机课程的重要组成部分,但许多机构只在专门的课程或轨道中教授它。这种选择性有可能使学生毕业时接触到行业中预期的安全编码实践的机会有限。另一种方法是在非安全课程中整合网络安全概念,以便让学生了解安全与其他计算子领域之间的相互作用。在本文中,我们报告我们的经验,应用安全集成的方法,本科网络编程课程。特别是,我们添加了安全编码的实用介绍,通过示例突出了OWASP Top 10漏洞,并演示了如何使用开箱即用的安全扫描工具(例如ZAP)识别它们。此外,我们通过提供奖励分数来激励学生在自己的课程项目中使用这些工具。为了评估这种干预的影响,我们扫描了过去三年学生的项目代码,发现漏洞数量减少了。最后,在焦点小组和调查中,学生们分享了我们的干预有助于提高认识,但他们也强调了分级激励的重要性以及更早教授安全内容的必要性。