通过重写引导的对象生成改进Java反序列化Gadget Chain挖掘
Improving Java Deserialization Gadget Chain Mining via Overriding-Guided Object Generation
AI总结:
本文提出GCMiner,一种基于重写引导的对象生成方法,用于改进Java反序列化Gadget Chain挖掘,通过捕获显式和隐式方法调用并生成有效注入对象,显著优于现有技术并发现56个独特链。
摘要:
Java(反)序列化容易导致安全关键漏洞,攻击者可以调用应用程序类路径上的现有方法(gadgets)来构造gadget chain以执行恶意行为。已经提出了几种技术来静态识别可疑的gadget chain并动态生成注入对象进行模糊测试。然而,由于对动态程序特性(例如Java运行时多态性)的不完全支持以及用于模糊测试的注入对象生成无效,现有技术仍远不能令人满意。在本文中,我们首先进行了一项实证研究,基于我们手动收集的86个公开已知的gadget chain调查Java反序列化漏洞的特征。实证结果表明:1)Java反序列化gadgets通常通过滥用运行时多态性被利用,这使攻击者能够重用可序列化的重写方法;2)攻击者通常通过动态绑定调用可利用的重写方法(gadgets)来生成注入对象以构造gadget chain。基于我们的实证发现,我们提出了一种新颖的gadget chain挖掘方法GCMiner,它捕获显式和隐式方法调用以识别更多gadget chain,并采用重写引导的对象生成方法为模糊测试生成有效的注入对象。评估结果表明,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, \emph{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 \emph{GCMiner} significantly outperforms the state-of-the-art techniques, and discovers 56 unique gadget chains that cannot be identified by the baseline approaches.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。