一句话:提出 GCMiner,通过捕获显式/隐式调用并用重写引导对象生成,挖掘更多 Java 反序列化 gadget chain。
Java 反序列化漏洞可被攻击者利用类路径上的 gadget 构建 gadget chain 执行恶意行为;现有静态识别与动态 fuzzing 对象生成方法对运行时多态等特性支持不足。作者先对 86 个公开 gadget chain 进行实证研究,发现 gadget 常滥用运行时多态复用可序列化的重写方法,并通过动态绑定调用可利用重写方法来构造注入对象。据此提出 GCMiner:捕获显式与隐式方法调用以识别更多链,并采用重写引导的对象生成方法为 fuzzing 生成有效注入对象。评估表明 GCMiner 显著优于现有技术,并发现 56 个基线无法识别的独特 gadget chain。
Java (de)serialization is prone to causing security-critical vulnerabilities that attackers can invoke existing methods (gadgets) on the application's classpath to construct a gadget chain to perform malicious behaviors. Several techniques have been proposed to statically identify suspicious gadget chains and dynamically generate injection objects for fuzzing. However, due to their incomplete support for dynamic program features (e.g., Java runtime polymorphism) and ineffective injection object generation for fuzzing, the existing techniques are still far from satisfactory. In this paper, we first performed an empirical study to investigate the characteristics of Java deserialization vulnerabilities based on our manually collected 86 publicly known gadget chains. The empirical results show that 1) Java deserialization gadgets are usually exploited by abusing runtime polymorphism, which enables attackers to reuse serializable overridden methods; and 2) attackers usually invoke exploitable overridden methods (gadgets) via dynamic binding to generate injection objects for gadget chain construction. Based on our empirical findings, we propose a novel gadget chain mining approach, GCMiner, which captures both explicit and implicit method calls to identify more gadget chains, and adopts an overriding-guided object generation approach to generate valid injection objects for fuzzing. The evaluation results show that GCMiner significantly outperforms the state-of-the-art techniques, and discovers 56 unique gadget chains that cannot be identified by the baseline approaches.
DOI 原文 · arXiv · PDF(开放获取) · DBLP
@inproceedings{CaoSWBLWLHOL23,
title = {Improving Java Deserialization Gadget Chain Mining via Overriding-Guided Object Generation},
author = {Sicong Cao and Xiaobing Sun and Xiaoxue Wu and Lili Bo and Bin Li and Rongxin Wu and Wei Liu and Biao He and Yu Ouyang and Jiajia Li},
booktitle = {ICSE},
year = {2023},
doi = {10.1109/icse48619.2023.00044}
}