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

你不应该依赖我:分析网络上过时的JavaScript图书馆的使用

Thou Shalt Not Depend on Me: Analysing the Use of Outdated JavaScript Libraries on the Web

Tobias Lauinger, Abdelberi Chaabane, Sajjad Arshad, William Robertson, Christo Wilson, Engin Kirda

摘要:

Web开发人员通常依赖第三方Java-Script库(如jQuery)来增强其网站的功能。然而,如果不正确维护,这种依赖关系可能会产生攻击媒介,使网站受到损害。在本文中,我们进行了第一次全面的研究客户端JavaScript库的使用和由此产生的安全性影响在整个Web。使用来自超过133 k网站的数据,我们发现其中37%至少包含一个具有已知漏洞的库;库最新版本发布的时间滞后以年为单位。为了更好地理解为什么网站使用这么多脆弱或过时的库,我们跟踪因果包含关系并量化不同的场景。我们观察到站点以临时且通常是可传递的方式包含库,这可能导致同一库的不同版本同时加载到同一文档中。此外,我们发现,通过传递或通过广告和跟踪代码包含的库更容易受到攻击。这表明,不仅网站管理员,而且第三方服务的动态架构和开发人员也应该为Web的图书馆管理状况不佳负责。我们的工作结果强调,需要更彻底的方法来依赖管理,代码维护和第三方代码包含在Web上。

英文摘要:

Web developers routinely rely on third-party Java-Script libraries such as jQuery to enhance the functionality of their sites. However, if not properly maintained, such dependencies can create attack vectors allowing a site to be compromised. In this paper, we conduct the first comprehensive study of client-side JavaScript library usage and the resulting security implications across the Web. Using data from over 133 k websites, we show that 37% of them include at least one library with a known vulnerability; the time lag behind the newest release of a library is measured in the order of years. In order to better understand why websites use so many vulnerable or outdated libraries, we track causal inclusion relationships and quantify different scenarios. We observe sites including libraries in ad hoc and often transitive ways, which can lead to different versions of the same library being loaded into the same document at the same time. Furthermore, we find that libraries included transitively, or via ad and tracking code, are more likely to be vulnerable. This demonstrates that not only website administrators, but also the dynamic architecture and developers of third-party services are to blame for the Web's poor state of library management. The results of our work underline the need for more thorough approaches to dependency management, code maintenance and third-party code inclusion on the Web.

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

↑