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

利用有缺陷的补丁进行大规模Web漏洞发现

Leveraging Flawed Tutorials for Seeding Large-Scale Web Vulnerability Discovery

Tommi Unruh, Bhargava Shastry, Malte Skoruppa, Federico Maggi, Konrad Rieck, Jean-Pierre Seifert, Fabian Yamaguchi

摘要:

网络上充满了关于如何完成编程任务的教程式内容。不幸的是,即使是排名靠前的教程也存在严重的安全漏洞,例如跨站脚本(XSS)和SQL注入(SQLi)。假设这些教程会影响真实世界的软件开发,我们假设流行教程中的代码片段可以用于大规模引导漏洞发现。为了验证我们的假设,我们提出了一种半自动化的方法来找到反复出现的漏洞,从一些包含易受攻击的代码片段的顶级教程开始。我们通过对成千上万的开源Web应用程序进行分析来评估我们的方法,以检查源自所选教程的漏洞是否会再次出现。我们的分析框架已经在标准PC上运行,分析了GitHub上托管的64,415个PHP代码库,并发现了117个漏洞,这些漏洞与流行教程中的易受攻击的代码片段具有很强的语法相似性。除了阐明程序员以临时方式重用Web教程代码的轶事信念外,我们的研究还发现了令人不安的证据,即未经充分审查的教程会损害开源项目的安全性。此外,我们的研究结果证明了使用写得很差的教程作为起点进行大规模漏洞发现的可行性。

英文摘要:

The Web is replete with tutorial-style content on how to accomplish programming tasks. Unfortunately, even top-ranked tutorials suffer from severe security vulnerabilities, such as cross-site scripting (XSS), and SQL injection (SQLi). Assuming that these tutorials influence real-world software development, we hypothesize that code snippets from popular tutorials can be used to bootstrap vulnerability discovery at scale. To validate our hypothesis, we propose a semi-automated approach to find recurring vulnerabilities starting from a handful of top-ranked tutorials that contain vulnerable code snippets. We evaluate our approach by performing an analysis of tens of thousands of open-source web applications to check if vulnerabilities originating in the selected tutorials recur. Our analysis framework has been running on a standard PC, analyzed 64,415 PHP codebases hosted on GitHub thus far, and found a total of 117 vulnerabilities that have a strong syntactic similarity to vulnerable code snippets present in popular tutorials. In addition to shedding light on the anecdotal belief that programmers reuse web tutorial code in an ad hoc manner, our study finds disconcerting evidence of insufficiently reviewed tutorials compromising the security of open-source projects. Moreover, our findings testify to the feasibility of large-scale vulnerability discovery using poorly written tutorials as a starting point.

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

↑