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

自动Web安全单元测试:XSS漏洞检测

Automatic Web Security Unit Testing: XSS Vulnerability Detection

Mahmoud Mohammadi, Bill Chu, Heather Richter Lipford, Emerson Murphy-Hill

摘要:

将安全测试集成到软件开发人员的工作流程中,不仅可以节省单独安全测试的资源,还可以通过在开发周期的早期检测来降低修复安全漏洞的成本。我们提出了一种自动测试方法来检测一种常见的跨站点脚本(XSS)漏洞所造成的不受信任的数据的不正确编码。我们自动提取在Web应用程序中使用的编码函数来清理不可信的输入,然后通过自动生成XSS攻击字符串来评估其有效性。我们的评估表明,这种技术可以检测到0天的XSS漏洞,不能发现的静态分析工具。我们还将证明我们的方法可以有效地覆盖常见类型的XSS漏洞。这种方法可以推广到针对其他类型注入(如命令行注入)的输入验证测试。

英文摘要:

Integrating security testing into the workflow of software developers not only can save resources for separate security testing but also reduce the cost of fixing security vulnerabilities by detecting them early in the development cycle. We present an automatic testing approach to detect a common type of Cross Site Scripting (XSS) vulnerability caused by improper encoding of untrusted data. We automatically extract encoding functions used in a web application to sanitize untrusted inputs and then evaluate their effectiveness by automatically generating XSS attack strings. Our evaluations show that this technique can detect 0-day XSS vulnerabilities that cannot be found by static analysis tools. We will also show that our approach can efficiently cover a common type of XSS vulnerability. This approach can be generalized to test for input validation against other types injections such as command line injection.

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

↑