Lune

FSE2020顶会

Detecting and understanding JavaScript global identifier conflicts on the web

Mingxue Zhang, Wei Meng

摘要

JavaScript is widely used for implementing client-side web applications, and it is common to include JavaScript code from many different hosts. However, in a web browser, all the scripts loaded in the same frame share a single global namespace. As a result, a script may read or even overwrite the global objects or functions in other scripts, causing unexpected behaviors. For example, a script can redefine a function in a different script as an object, so that any call of that function would cause an exception at run time.

We systematically investigate the client-side JavaScript code integrity problem caused by JavaScript global identifier conflicts in this paper. We developed a browser-based analysis framework, JSObserver, to collect and analyze the write operations to global memory locations by JavaScript code. We identified three categories of conflicts using JSObserver on the Alexa top 100K websites, and detected 145,918 conflicts on 31,615 websites.

We reveal that JavaScript global identifier conflicts are prevalent and could cause behavior deviation at run time. In particular, we discovered that 1,611 redefined functions were called after being overwritten, and many scripts modified the value of cookies or redefined cookie-related functions. Our research demonstrated that JavaScript global identifier conflict is an emerging threat to both the web users and the integrity of web applications.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 6 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • JSISOLATE: lightweight in-browser JavaScript isolation 引用了 Content Security Problems?: Evaluating the Effectiveness of Content Security Policy in the Wild
  • JSISOLATE: lightweight in-browser JavaScript isolation 引用了 Thou Shalt Not Depend on Me: Analysing the Use of Outdated JavaScript Libraries on the Web
  • CoCo: Efficient Browser Extension Vulnerability Detection via Coverage-guided, Concurrent Abstract Interpretation 引用了 JSISOLATE: lightweight in-browser JavaScript isolation
  • Scaling JavaScript Abstract Interpretation to Detect and Exploit Node.js Taint-style Vulnerability 引用了 JSISOLATE: lightweight in-browser JavaScript isolation
  • ReactAppScan: Mining React Application Vulnerabilities via Component Graph 引用了 JSISOLATE: lightweight in-browser JavaScript isolation
  • ReactAppScan: Mining React Application Vulnerabilities via Component Graph 引用了 CoCo: Efficient Browser Extension Vulnerability Detection via Coverage-guided, Concurrent Abstract Interpretation
  • ReactAppScan: Mining React Application Vulnerabilities via Component Graph 引用了 Scaling JavaScript Abstract Interpretation to Detect and Exploit Node.js Taint-style Vulnerability
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper6

  1. JSISOLATE: lightweight in-browser JavaScript isolationMingxue Zhang, Wei MengFSE 2021 · 9 次引用
  2. PURL: Safe and Effective Sanitization of Link DecorationShaoor Munir, Patrick Lee, Umar Iqbal, Sandra Deepthy Siby 等USENIX Security 2024 · 9 次引用
  3. CoCo: Efficient Browser Extension Vulnerability Detection via Coverage-guided, Concurrent Abstract InterpretationJianjia Yu, Song Li, Junmin Zhu, Yinzhi CaoCCS 2023 · 6 次引用
  4. ReactAppScan: Mining React Application Vulnerabilities via Component GraphZhiyong Guo, Mingqing Kang, V. N. Venkatakrishnan, Rigel Gjomemo 等CCS 2024 · 3 次引用
  5. Scaling JavaScript Abstract Interpretation to Detect and Exploit Node.js Taint-style VulnerabilityMingqing Kang, Yichao Xu, Song Li, Rigel Gjomemo 等S&P 2023

它引用的 Paper2

  1. Thou Shalt Not Depend on Me: Analysing the Use of Outdated JavaScript Libraries on the WebTobias Lauinger, Abdelberi Chaabane, Sajjad Arshad, William Robertson 等NDSS 2017 · 183 次引用
  2. Content Security Problems?: Evaluating the Effectiveness of Content Security Policy in the WildStefano Calzavara, Alvise Rabitti, Michele BugliesiCCS 2016 · 71 次引用

相关 Paper

  1. Peeking through the window: Fingerprinting Browser Extensions through Page-Visible Execution Traces and InteractionsShubham Agarwal, Aurore Fass, Ben StockCCS 2024 · 4 次引用
  2. The Big Brother's New Playground: Unmasking the Illusion of Privacy in Web Metaverses from a Malicious User's PerspectiveAndrea Mengascini, Ryan Aurelio, Giancarlo PellegrinoCCS 2024
  3. All Your Clicks Belong to Me: Investigating Click Interception on the WebMingxue Zhang, Wei Meng, Sangho Lee, Byoungyoung Lee 等USENIX Security 2019 · 26 次引用
  4. Cookie Swap Party: Abusing First-Party Cookies for Web TrackingQuan Chen, Panagiotis Ilia, Michalis Polychronakis, Alexandros KapravelosWWW 2021 · 57 次引用
  5. Detecting and Understanding Self-Deleting JavaScript CodeXinzhe Wang, Zeyang Zhuang, Wei Meng, James ChengWWW 2024
黄昏的海面,两侧是细线勾勒的悬崖