Hand Sanitizers in the Wild: A Large-scale Study of Custom Java']JavaScript Sanitizer Functions

被引:6
|
作者
Klein, David [1 ]
Barber, Thomas [2 ]
Bensalim, Souphiane [2 ]
Stock, Ben [3 ]
Johns, Martin [1 ]
机构
[1] Tech Univ Carolo Wilhelmina Braunschweig, Braunschweig, Germany
[2] SAP Secur Res, Walldorf, Germany
[3] CISPA Helmholtz Ctr Informat Secur, Saarbrucken, Germany
来源
2022 IEEE 7TH EUROPEAN SYMPOSIUM ON SECURITY AND PRIVACY (EUROS&P 2022) | 2022年
关键词
D O I
10.1109/EuroSP53844.2022.00023
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Despite the considerable amounts of resources invested into securing the Web, Cross-Site Scripting (XSS) is still widespread. This is especially true for Client-Side XSS as, unlike server-side application frameworks, Web browsers do not ship with standard protection routines, so-called sanitizers. Web developers, therefore, have to either resort to third-party libraries or write their own sanitizers to stop XSS in its tracks. Such custom sanitizer routines - dubbed hand sanitizers in the following - are notoriously difficult to implement securely. In this paper, we present a technique to automatically detect, extract, analyze, and validate JavaScript sanitizer functions using a combination of taint tracking and symbolic string analysis. While existing work evaluates server-side sanitizers using a small number of applications, we present the first large-scale study of client-side JavaScript sanitizers. Of the most popular 20,000 websites, our method detects 705 unique sanitizers across 1,415 domains, of which 12.5% are insecure. Of the vulnerable sanitizers, we were able to automatically generate circumventing exploits for 51.3% of them, highlighting the dangers of manual sanitization attempts. Interestingly, vulnerable sanitizers are present across the entire range of website rankings considered, and we find that most sanitizers are not generic enough to thwart XSS if used in just a slightly different context. Finally, we explore the origins of vulnerable sanitizers to motivate adopting a standardized sanitization API available directly in the browser.
引用
收藏
页码:236 / 250
页数:15
相关论文
共 50 条
  • [41] Testing of Mobile Applications in the Wild: A Large-Scale Empirical Study on Android Apps
    Pecorelli, Fabiano
    Catolino, Gemma
    Ferrucci, Filomena
    De Lucia, Andrea
    Palomba, Fabio
    2020 IEEE/ACM 28TH INTERNATIONAL CONFERENCE ON PROGRAM COMPREHENSION, ICPC, 2020, : 296 - 307
  • [42] Scala Implicits Are Everywhere A Large-Scale Study of the Use of Scala Implicits in the Wild
    Krikava, Filip
    Miller, Heather
    Vitek, Jan
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2019, 3 (OOPSLA):
  • [43] Demo: Large Scale Analysis on Vulnerability Remediation in Open-source Java']JavaScript Projects
    Bandara, Vinuri
    Rathnayake, Thisura
    Weerasekara, Nipuna
    Elvitigala, Charitha
    Thilakarathna, Kenneth
    Wijesekera, Primal
    De Zoysa, Kasun
    Keppitiyagama, Chamath
    CCS '21: PROCEEDINGS OF THE 2021 ACM SIGSAC CONFERENCE ON COMPUTER AND COMMUNICATIONS SECURITY, 2021, : 2447 - 2449
  • [44] Comparison Study of Large-scale Optimisation Techniques on the LSMOP Benchmark Functions
    Zille, Heiner
    Mostaghim, Sanaz
    2017 IEEE SYMPOSIUM SERIES ON COMPUTATIONAL INTELLIGENCE (SSCI), 2017,
  • [45] What are the characteristics of popular APIs? A large-scale study on Java, Android, and 165 libraries
    Caroline Lima
    Andre Hora
    Software Quality Journal, 2020, 28 : 425 - 458
  • [46] Large-scale Video Panoptic Segmentation in the Wild: A Benchmark
    Miao, Jiaxu
    Wang, Xiaohan
    Wu, Yu
    Li, Wei
    Zhang, Xu
    Wei, Yunchao
    Yang, Yi
    2022 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR 2022), 2022, : 21001 - 21011
  • [47] SemTrack: A Large-Scale Dataset for Semantic Tracking in the Wild
    Wang, Pengfei
    Hui, Xiaofei
    Wu, Jing
    Yang, Zile
    Ong, Kian Eng
    Zhao, Xinge
    Lu, Beijia
    Huang, Dezhao
    Ling, Evan
    Chen, Weiling
    Ma, Keng Teck
    Hur, Minhoe
    Liu, Jun
    COMPUTER VISION - ECCV 2024, PT XXIV, 2025, 15082 : 486 - 504
  • [48] PROBABILITY FUNCTIONS AND SYSTEMATICS OF LARGE-SCALE CLUSTERING
    MO, HJ
    INTERNATIONAL JOURNAL OF MODERN PHYSICS A, 1988, 3 (06): : 1373 - 1383
  • [49] Parallel surface reconstruction for large-scale scenes in the wild
    Cao, Mingwei
    Gao, Hao
    Jia, Wei
    INTERNATIONAL JOURNAL OF CIRCUIT THEORY AND APPLICATIONS, 2021, 49 (05) : 1420 - 1434
  • [50] LYAPUNOV FUNCTIONS FOR A CLASS OF LARGE-SCALE SYSTEMS
    SINHA, ASC
    IEEE TRANSACTIONS ON AUTOMATIC CONTROL, 1980, 25 (03) : 558 - 560