arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.00943cs.SE
收藏

Seneca:面向Java对象反序列化的基于污点的调用图构建

Seneca: Taint-Based Call Graph Construction for Java Object Deserialization

Joanna C. S. Santos, Mehdi Mirakhorli, Ali Shokri

AI总结:

本文提出Seneca方法,通过污点分析与API建模在调用图构建中支持Java对象序列化/反序列化,以健全地揭示回调方法路径,并验证其在检测不可信反序列化漏洞方面的有效性。

摘要:

对象序列化与反序列化被广泛用于在文件、内存或数据库中存储和保留对象,以及跨机器传输对象,从而支持进程间远程交互等众多场景。该机制依赖反射,而反射是一种动态语言特性,给静态分析带来了严峻挑战。当前最先进的调用图构建算法并未完全支持对象序列化/反序列化,即它们无法揭示对象在序列化和反序列化时被调用的回调方法。由于调用图是多种分析(例如漏洞检测)的核心数据结构,如果调用图未能捕获经由回调方法产生的隐藏(易受攻击的)路径,就无法执行恰当的分析。在本文中,我们提出了Seneca,一种在调用图构建场景下以改进的健全性处理序列化的方法。我们的方法依赖污点分析和API建模来构建健全的调用图。我们从健全性、精确性、性能以及在检测不可信对象反序列化漏洞方面的有用性四个维度对该方法进行了评估。结果表明,Seneca能够针对序列化特性构建健全的调用图。所生成的调用图不会带来显著的运行时开销,并且被证明有助于识别由不可信对象反序列化引起的易受攻击路径。

英文摘要:

Object serialization and deserialization are widely used for storing and preserving objects in files, memory, or database as well as for transporting them across machines, enabling remote interaction among processes and many more. This mechanism relies on reflection, a dynamic language that introduces serious challenges for static analyses. Current state-of-the-art call graph construction algorithms do not fully support object serialization/deserialization, i.e., they are unable to uncover the callback methods that are invoked when objects are serialized and deserialized. Since call graphs are a core data structure for multiple types of analysis (e.g., vulnerability detection), an appropriate analysis cannot be performed since the call graph does not capture hidden (vulnerable) paths that occur via callback methods. In this paper, we present Seneca, an approach for handling serialization with improved soundness in the context of call graph construction. Our approach relies on taint analysis and API modeling to construct sound call graphs. We evaluated our approach with respect to soundness, precision, performance, and usefulness in detecting untrusted object deserialization vulnerabilities. Our results show that Seneca can create sound call graphs with respect to serialization features. The resulting call graphs do not incur significant runtime overhead and were shown to be useful for performing identification of vulnerable paths caused by untrusted object deserialization.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑