arrow
Return

Javascript global identifier conflicts detection based on static analysis

delete2026-01-04
delete0
delete
OA
AI
S
Shibo Sun
姚世雄 cover
姚世雄 (Shixiong Yao) *
J
Jiageng Chen
李沛 cover
李沛 (Pei Li)
DOI:10.1186/s42400-025-00530-xdelete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
JavaScript code is often included in web applications to implement various functionalities. However, namespace is absent in JavaScript(JS), and all JavaScript code in a same frame shares a common namespace. The absence of namespace may lead to mutual interference among JavaScript code, which results in abnormal program execution. In this paper, we investigate the issue of global identifier conflicts in JavaScript code that cause anomalies across entire web pages. Unlike existing dynamic detection methods like JSOBSERVER which introduce significant runtime performance overhead and can only detect conflicts in executed code paths, our approach avoids execution dependency and performance penalty. Aimed to this issue, we develop a static analysis tool, called DetecJS, to analyze dependencies and conflict relationships among JavaScript code. It can be used to assists developers in identifying global identifier conflicts in the program early during development without executing the code. Based on DetecJS, we identify 2618 global identifier conflicts across 1000 websites. Additionally, we conduct a performance evaluation of DetecJS, the results indicated that the tool exhibits high performance, with an average analysis time of only 5.56 s per web page and conflict detection taking just 15.15 ms.
Keywords:
Static analysis
JavaScript
Global identifier
Detecting malicious JavaScript code based on semantic analysis
err2020-06-01
err22
PREAI
errFang, Yong; Huang, Cheng; Su, Yu; Qiu, Yaoyao
errShare
errSave
errShare
errSave
Study of JavaScript Static Analysis Tools for Vulnerability Detection in Node.js Packages
err2023-12-01
err5
errOAAI
errBrito, Tiago; Ferreira, Mafalda; Monteiro, Miguel; Lopes, Pedro; Barros, Miguel; Santos, Jose Fragoso; Santos, Nuno
errShare
errSave
errShare
errSave
Is JavaScript Call Graph Extraction Solved Yet? A Comparative Study of Static and Dynamic Tools
err2023-01-01
err3
errOAAI
errAntal, Gabor; Hegedus, Peter; Herczeg, Zoltan; Loki, Gabor; Ferenc, Rudolf
errShare
errSave
IRIDIUM: A Framework for Statically Optimizing JavaScript Programs
err2026-04-01
err0
PREAI
errMehta, Meetesh kalpesh; Garg, Anirudh; Yadav, Aneeket; Thakur, Manas
errShare
errSave
Research on Malicious JavaScript Detection Technology Based on LSTM
err2018-01-01
err27
errOAAI
errFang, Yong; Huang, Cheng; Liu, Liang; Xue, Min
errShare
errSave

Journal

C
Cybersecurity
IF:
3.7
Papers:
618
Citations:
1.4K

Organization

central china normal university cover
central china normal university
Scholars:
1.4K
Papers: 413
Citations: 6.7K
Cited Papers

Cited Papers

The Adoption of JavaScript Linters in Practice: A Case Study on ESLint
err2020-08-01
err30
errOAAI
errTomasdottir, Kristin Fjola; Aniche, Mauricio; van Deursen, Arie
errShare
errSave
Type Analysis for JavaScript
err2009-01-01
err0
PREAI
errSimon Holm Jensen; Anders Møller; Peter Thiemann
errShare
errSave
errShare
errSave
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
ConflictJS
err2018-05-27
err0
PREAI
errJibesh Patra; Pooja N. Dixit; Michael Pradel
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
researcher View more