SerialDetector: Principled and Practical Exploration of Object Injection Vulnerabilities for the Web

被引:14
|
作者
Shcherbakov, Mikhail [1 ]
Balliu, Musard [1 ]
机构
[1] KTH Royal Inst Technol, Stockholm, Sweden
基金
瑞典研究理事会;
关键词
D O I
10.14722/ndss.2021.24550
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
The last decade has seen a proliferation of code-reuse attacks in the context of web applications. These attacks stem from Object Injection Vulnerabilities (OIV) enabling attacker-controlled data to abuse legitimate code fragments within a web application's codebase to execute a code chain (gadget) that performs malicious computations, like remote code execution, on attacker's behalf. OIVs occur when untrusted data is used to instantiate an object of attacker-controlled type with attacker-chosen properties, thus triggering the execution of code available but not necessarily used by the application. In the web application domain, OIVs may arise during the process of deserialization of client-side data, e.g., HTTP requests, when reconstructing the object graph that is subsequently processed by the backend applications on the server side. This paper presents the first systematic approach for detecting and exploiting OIVs in .NET applications including the framework and libraries. Our key insight is: The root cause of OIVs is the untrusted information flow from an application's public entry points (e.g., HTTP request handlers) to sensitive methods that create objects of arbitrary types (e.g., reflection APIs) to invoke methods (e.g., native/virtual methods) that trigger the execution of a gadget. Drawing on this insight, we develop and implement SerialDetector, a taint-based dataflow analysis that discovers OIV patterns in .NET assemblies automatically. We then use these patterns to match publicly available gadgets and to automatically validate the feasibility of OIV attacks. We demonstrate the effectiveness of our approach by an indepth evaluation of a complex production software such as the Azure DevOps Server. We describe the key threat models and report on several remote code execution vulnerabilities found by SerialDetector, including three CVEs on Azure DevOps Server. We also perform an in-breadth security analysis of recent publicly available CVEs. Our results show that SerialDetector can detect OIVs effectively and efficiently. We release our tool publicly to support open science and encourage researchers and practitioners explore the topic further.
引用
收藏
页数:18
相关论文
共 36 条
  • [31] Comparing the Effectiveness of Penetration Testing and Static Code Analysis on the Detection of SQL Injection Vulnerabilities in Web Services
    Antunes, Nuno
    Vieira, Marco
    IEEE 15TH PACIFIC RIM INTERNATIONAL SYMPOSIUM ON DEPENDABLE COMPUTING, PROCEEDINGS, 2009, : 301 - 306
  • [32] Static Analysis Approaches to Detect SQL Injection and Cross Site Scripting Vulnerabilities in Web Applications: A Survey
    Gupta, Mukesh Kumar
    Govil, M. C.
    Singh, Girdhari
    2014 RECENT ADVANCES AND INNOVATIONS IN ENGINEERING (ICRAIE), 2014,
  • [33] Semantic Blumenbach: Exploration of Text-Object Relationships with Semantic Web Technology in the History of Science
    Wettlaufer, Joerg
    Johnson, Christopher
    Scholz, Martin
    Fichtner, Mark
    Thotempudi, Sree Ganesh
    DIGITAL SCHOLARSHIP IN THE HUMANITIES, 2015, 30 : 187 - 198
  • [34] Analysis of Effectiveness of Black-Box Web Application Scanners in Detection of Stored SQL Injection and Stored XSS Vulnerabilities
    Parvez, Muhammad
    Zavarsky, Pavol
    Khoury, Nidal
    2015 10TH INTERNATIONAL CONFERENCE FOR INTERNET TECHNOLOGY AND SECURED TRANSACTIONS (ICITST), 2015, : 186 - 191
  • [35] JS']JS-SAN: defense mechanism for HTML']HTML5-based web applications against java']javascript code injection vulnerabilities
    Gupta, Shashank
    Gupta, B. B.
    SECURITY AND COMMUNICATION NETWORKS, 2016, 9 (11) : 1477 - 1495
  • [36] The Practical Application of e-Portfolios in K-12 Classrooms: An Exploration of Three Web 2.0 Tools by Three Teachers
    Karlin M.
    Ozogul G.
    Miles S.
    Heide S.
    TechTrends, 2016, 60 (4) : 374 - 380