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 条
  • [21] Java']Java communications for large-scale parallel computing
    Getov, V
    Philippsen, M
    LARGE-SCALE SCIENTIFIC COMPUTING, 2001, 2179 : 33 - 45
  • [22] DRAM Errors in the Wild: A Large-Scale Field Study
    Schroeder, Bianca
    Pinheiro, Eduardo
    Weber, Wolf-Dietrich
    SIGMETRICS/PERFORMANCE'09, PROCEEDINGS OF THE 2009 JOINT INTERNATIONAL CONFERENCE ON MEASUREMENT AND MODELING OF COMPUTER SYSTEMS, 2009, 37 (01): : 193 - 204
  • [23] DRAM Errors in the Wild: A Large-Scale Field Study
    Schroeder, Bianca
    Pinheiro, Eduardo
    Weber, Wolf-Dietrich
    COMMUNICATIONS OF THE ACM, 2011, 54 (02) : 100 - 107
  • [24] Large-scale parallel geophysical algorithms in Java: A feasibility study
    Jacob, Matthias
    Philippsen, Michael
    Karrenbach, Martin
    Leading Edge (Tulsa, OK), 1998, 17 (12):
  • [25] Large-scale parallel geophysical algorithms in Java: A feasibility study
    Univ of Karlsruhe, Karlsruhe, Germany
    Concurrency Pract Exper, 11-13 (1143-1153):
  • [26] A comparative study of Java']Java and C performance in two large-scale parallel applications
    Shafi, Aamir
    Carpenter, Bryan
    Baker, Mark
    Hussain, Aftab
    CONCURRENCY AND COMPUTATION-PRACTICE & EXPERIENCE, 2009, 21 (15): : 1882 - 1906
  • [27] A Large-Scale Empirical Study on Java']Java Library Migrations: Prevalence, Trends, and Rationales
    He, Hao
    He, Runzhi
    Gu, Haiqiao
    Zhou, Minghui
    PROCEEDINGS OF THE 29TH ACM JOINT MEETING ON EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING (ESEC/FSE '21), 2021, : 478 - 490
  • [28] SourcererJBF: A Java']Java Build Framework For Large-Scale Compilation
    Misu, Md Rakib Hossain
    Achar, Rohan
    Lopes, Cristina V.
    ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2024, 33 (03)
  • [29] A Large-Scale Study of IoT Security Weaknesses and Vulnerabilities in the Wild
    Selvaraj, Madhu
    Uddin, Gias
    ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2025, 34 (02)
  • [30] What are the characteristics of popular APIs? A large-scale study on Java']Java, Android, and 165 libraries
    Lima, Caroline
    Hora, Andre
    SOFTWARE QUALITY JOURNAL, 2020, 28 (02) : 425 - 458