Android中的反序列化gadget链并非异常问题:AOSP中Java Gadget链的深入研究
Deserialization Gadget Chains are not a Pathological Problem in Android:an In-Depth Study of Java Gadget Chains in AOSP
AI总结:
针对Android平台反序列化gadget链研究空白,本文设计高效检测工具,在Android SDK及第三方库中未发现安全关键gadget链,挑战Java反序列化gadget链普遍问题的观点。
摘要:
跨应用通信是操作系统(如Android)的一项必要且安全关键的功能。在应用层面,Android通过Intents实现这一功能,Intents还可使用Java的Serializable API传输非基本类型对象。然而,Serializable API长期存在反序列化漏洞,尤其是反序列化gadget链。研究工作主要集中在Java平台上检测反序列化gadget链,但对Android平台中gadget链的存在知之甚少。我们旨在通过搜索Android SDK(Android官方开发库)和常用第三方库中的gadget链来填补这一空白。为处理大规模数据集,我们设计了一个兼顾稳健性和效率的gadget链检测工具。在完整的Ysoserial数据集基准测试中,该工具在显著更短的时间内取得了与最先进工具相当的稳健结果。使用我们的工具,我们首先发现Android SDK包含与Java类库几乎相同的跳板gadget。我们还发现可以通过Android的Parcel API触发Java原生序列化。然而,在Android SDK和1200个Android依赖项上运行我们的工具,并结合全面的sink数据集,未发现安全关键的gadget链。这一结果与Java反序列化gadget链是普遍问题的普遍观点相悖。相反,该问题似乎更为微妙,我们对未来研究方向提供了见解。
英文摘要:
Inter-app communication is a mandatory and security-critical functionality of operating systems, such as Android. On the application level, Android implements this facility through Intents, which can also transfer non-primitive objects using Java's Serializable API. However, the Serializable API has a long history of deserialization vulnerabilities, specifically deserialization gadget chains. Research endeavors have been heavily directed towards the detection of deserialization gadget chains on the Java platform. Yet, there is little knowledge about the existence of gadget chains within the Android platform. We aim to close this gap by searching gadget chains in the Android SDK, Android's official development libraries, as well as frequently used third-party libraries. To handle this large dataset, we design a gadget chain detection tool optimized for soundness and efficiency. In a benchmark on the full Ysoserial dataset, it achieves similarly sound results to the state-of-the-art in significantly less time. Using our tool, we first show that the Android SDK contains almost the same trampoline gadgets as the Java Class Library. We also find that one can trigger Java native serialization through Android's Parcel API. Yet, running our tool on the Android SDK and 1,200 Android dependencies, in combination with a comprehensive sink dataset, yields no security-critical gadget chains. This result opposes the general notion of Java deserialization gadget chains being a widespread problem. Instead, the issue appears to be more nuanced, and we provide a perspective on where to direct further research.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。