QUACK: Hindering Deserialization Attacks via Static Duck Typing
Yaniv David, Neophytos Christou, Andreas D. Kellas, Vasileios P. Kemerlis, Junfeng Yang
摘要
—Managed languages facilitate convenient ways for serializing objects, allowing applications to persist and transfer them easily, yet this feature opens them up to attacks. By manipulating serialized objects, attackers can trigger a chained execution of existing code segments, using them as gadgets to form an exploit. Protecting deserialization calls against attacks is cumbersome and tedious, leading to many developers avoiding deploying defenses properly. We present Q UACK , a framework for automatically protecting applications by fixing calls to deseri-alization APIs. This “binding” limits the classes allowed for usage in the deserialization process, severely limiting the code available for (ab)use as part of exploits. Q UACK computes the set of classes that should be allowed using a novel static duck typing inference technique. In particular, it statically collects all statements in the program code that manipulate objects after they are deserialized, and puts together a filter for the list of classes that should be available at runtime. We have implemented Q UACK for PHP and evaluated it on a set of applications with known CVEs, and popular applications crawled from GitHub. Q UACK managed to fix the applications in a way that prevented any attempt at automatically generating an exploit against them, by blocking, on average, 97% of the application’s code that could be used as gadgets. We submitted a sample of three fixes generated by Q UACK as pull requests, and their developers merged them.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- ODDFuzz: Discovering Java Deserialization Vulnerabilities via Structure-Aware Directed Greybox Fuzzing 引用了 Less is More: Quantifying the Security Benefits of Debloating Web Applications
- ODDFuzz: Discovering Java Deserialization Vulnerabilities via Structure-Aware Directed Greybox Fuzzing 引用了 FUGIO: Automatic Exploit Generation for PHP Object Injection Vulnerabilities
- The First Large-Scale Systematic Study of Python Class Pollution Vulnerability 引用了 ODDFuzz: Discovering Java Deserialization Vulnerabilities via Structure-Aware Directed Greybox Fuzzing
- The First Large-Scale Systematic Study of Python Class Pollution Vulnerability 引用了 FUGIO: Automatic Exploit Generation for PHP Object Injection Vulnerabilities
- Sleeping Giants - Activating Dormant Java Deserialization Gadget Chains through Stealthy Code Changes 引用了 ODDFuzz: Discovering Java Deserialization Vulnerabilities via Structure-Aware Directed Greybox Fuzzing
- Saphire: Sandboxing PHP Applications with Tailored System Call Allowlists 引用了 Less is More: Quantifying the Security Benefits of Debloating Web Applications
- PickleBall: Secure Deserialization of Pickle-based Machine Learning Models 引用了 FUGIO: Automatic Exploit Generation for PHP Object Injection Vulnerabilities
引用它的顶会 Paper4
- Typed and Confused: Studying the Unexpected Dangers of Gradual TypingDominic Troppmann, Aurore Fass, Cristian-Alexandru StaicuASE 2024 · 2 次引用
- The First Large-Scale Systematic Study of Python Class Pollution VulnerabilityZhengyu Liu, Jiacheng Zhong, Jianjia Yu, Muxi Lyu 等S&P 2026
- Sleeping Giants - Activating Dormant Java Deserialization Gadget Chains through Stealthy Code ChangesBruno Kreyssig, Sabine Houy, Timothée Riom, Alexandre BartelCCS 2025
- PickleBall: Secure Deserialization of Pickle-based Machine Learning ModelsAndreas D. Kellas, Neophytos Christou, Wenxin Jiang, Penghui Li 等CCS 2025
它引用的 Paper6
- Less is More: Quantifying the Security Benefits of Debloating Web ApplicationsBabak Amin Azad, Pierre Laperdrix, Nick NikiforakisUSENIX Security 2019 · 100 次引用
- Saphire: Sandboxing PHP Applications with Tailored System Call AllowlistsAlexander Bulekov, Rasoul Jahanshahi, Manuel EgeleUSENIX Security 2021 · 30 次引用
- SimTyper: sound type inference for Ruby using type equality predictionMilod Kazerounian, Jeffrey S. Foster, Bonan MinOOPSLA 2021 · 9 次引用
- ODDFuzz: Discovering Java Deserialization Vulnerabilities via Structure-Aware Directed Greybox FuzzingSicong Cao, Biao He, Xiaobing Sun, Yu Ouyang 等S&P 2023
- FUGIO: Automatic Exploit Generation for PHP Object Injection VulnerabilitiesSunnyeo Park, Daejun Kim, Suman Jana, Sooel SonUSENIX Security 2022
相关 Paper
- Automatic Policy Synthesis and Enforcement for Protecting Untrusted DeserializationQuan Zhang, Yiwen Xu, Zijing Yin, Chijin Zhou 等NDSS 2024
- Crystallizer: A Hybrid Path Analysis Framework to Aid in Uncovering Deserialization VulnerabilitiesPrashast Srivastava, Flavio Toffalini, Kostyantyn Vorobyov, François Gauthier 等FSE 2023 · 7 次引用
- PFortifier: Mitigating PHP Object Injection Through Automatic Patch GenerationBo Pang, Yiheng Zhang, Mingzhe Gao, Junzhe Zhang 等S&P 2025
- Seneca: Taint-Based Call Graph Construction for Java Object DeserializationJoanna C. S. Santos, Mehdi Mirakhorli, Ali ShokriOOPSLA 2024 · 9 次引用
- Precise and Effective Gadget Chain Mining through Deserialization Guided Call Graph ConstructionYiheng Zhang, Ming Wen, Shunjie Liu, Dongjie He 等USENIX Security 2025
