Comparing the Detection of XSS Vulnerabilities in Node.js']js and a Multi-tier Java']JavaScript-based Language via Deep Learning

被引:0
作者
Maurel, Heloise [1 ]
Vidal, Santiago [2 ]
Rezk, Tamara [1 ]
机构
[1] INRIA, INDES Project, Sophia Antipolis, France
[2] ISISTAN CONICET, Tandil, Argentina
来源
PROCEEDINGS OF THE 8TH INTERNATIONAL CONFERENCE ON INFORMATION SYSTEMS SECURITY AND PRIVACY (ICISSP) | 2021年
关键词
Web Security; Deep Learning; Web Attacks; Cross-site Scripting;
D O I
10.5220/0010980800003120
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Cross-site Scripting (XSS) is one of the most common and impactful software vulnerabilities (ranked second in the CWE 's top 25 in 2021). Several approaches have focused on automatically detecting software vulnerabilities through machine learning models. To build a model, it is necessary to have a dataset of vulnerable and non-vulnerable examples and to represent the source code in a computer understandable way. In this work, we explore the impact of predicting XSS using representations based on single-tier and multi-tier languages. We built 144 models trained on Javascript-based multitier code - i.e. which includes server code and HTML, Javascript and CSS as client code - and 144 models trained on single-tier code, which include sever code and client-side code as text. Despite the lower precision, our results show a better recall with multitier languages than a single-tier language, implying an insignificant impact on XSS detectors based on deep learning.
引用
收藏
页码:189 / 201
页数:13
相关论文
共 40 条
  • [1] CODDLE: Code-Injection Detection With Deep Learning
    Abaimov, Stanislav
    Bianchi, Giuseppe
    [J]. IEEE ACCESS, 2019, 7 : 128617 - 128627
  • [2] code2vec: Learning Distributed Representations of Code
    Alon, Uri
    Zilberstein, Meital
    Levy, Omer
    Yahav, Eran
    [J]. PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2019, 3 (POPL):
  • [3] [Anonymous], 2009, P NETW DISTR SYST SE
  • [4] AppScan, APPSC SCANN NOD JS S
  • [5] Saner: Composing static and dynamic analysis to validate sanitization in web applications
    Balzarotti, Davide
    Cova, Marco
    Felmetsger, Vika
    Jovanovic, Nenad
    Kirda, Engin
    Kruegel, Christopher
    Vigna, Giovanni
    [J]. PROCEEDINGS OF THE 2008 IEEE SYMPOSIUM ON SECURITY AND PRIVACY, 2008, : 387 - +
  • [6] Mitch: A Machine Learning Approach to the Black-Box Detection of CSRF Vulnerabilities
    Calzavara, Stefano
    Conti, Mauro
    Focardi, Riccardo
    Rabitti, Alvise
    Tolomei, Gabriele
    [J]. 2019 4TH IEEE EUROPEAN SYMPOSIUM ON SECURITY AND PRIVACY (EUROS&P), 2019, : 528 - 543
  • [7] Choi M., 2017, ABS170302458
  • [8] Cooper E, 2007, LECT NOTES COMPUT SC, V4709, P266
  • [9] Dam H. K., 2017, ABS170802368
  • [10] Doupé A, 2010, LECT NOTES COMPUT SC, V6201, P111, DOI 10.1007/978-3-642-14215-4_7