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

Diffploit:助力开源库漏洞的跨版本漏洞利用迁移

Diffploit: Facilitating Cross-Version Exploit Migration for Open Source Library Vulnerabilities

The State Key Laboratory of Blockchain and Data Security, Zhejiang University(浙江大学区块链与数据安全国家重点实验室);Queen’s University(女王大学)

Zirui Chen, Zhipeng Xue, Jiayuan Zhou, Xing Hu, Xin Xia, Xiaohu Yang

AI总结:

Diffploit是一种迭代的差异驱动漏洞利用迁移方法,通过上下文模块和迁移模块提升跨版本漏洞利用迁移成功率,在大规模Java CVE数据集上表现优于现有工具,还发现了受影响版本范围错误的CVE及未报告的易受攻击版本。

摘要:

漏洞利用通常用于演示库漏洞的存在并验证其在不同版本间的影响,但由于版本演化过程中引入的破坏性变更,它们往往无法直接应用于其他版本。这些失败源于触发条件的变更(如API重构)和动态环境的破坏(如构建或运行时错误),人工难以解读和适配。现有技术主要通过模糊测试关注代码级的轨迹对齐,既耗时又不足以处理环境级失败,且在应对跨版本复杂触发条件变更时往往效果不佳。为解决此问题,我们提出Diffploit,一种迭代的、由差异驱动的漏洞利用迁移方法,围绕两个关键模块构建:上下文模块和迁移模块。上下文模块通过分析目标版本与参考版本之间的行为差异,动态构建上下文,捕获失败症状及其相关差异块。迁移模块利用这些上下文,通过迭代反馈循环指导基于大语言模型(LLM)的适配,平衡差异候选的探索与逐步优化,以有效解决复现失败。我们在包含102个Java CVE和79个库的689个版本迁移任务的大规模数据集上评估Diffploit,Diffploit成功迁移84.2%的漏洞利用,比感知变更的测试修复工具TARGET高出52.0%,比IDEA中的基于规则的工具高出61.6%。除技术有效性外,Diffploit还识别出5个受影响版本范围不正确的CVE报告,其中3个已得到确认;此外,它还在GitHub Advisory Database中发现了111个未报告的易受攻击版本。

英文摘要:

Exploits are commonly used to demonstrate the presence of library vulnerabilities and validate their impact across different versions. However, their direct application to alternative versions often fails due to breaking changes introduced during evolution. These failures stem from both changes in triggering conditions (e.g., API refactorings) and broken dynamic environments (e.g., build or runtime errors), which are challenging to interpret and adapt manually. Existing techniques primarily focus on code-level trace alignment through fuzzing, which is both time-consuming and insufficient for handling environment-level failures. Moreover, they often fall short when dealing with complicated triggering condition changes across versions. To overcome this, we propose Diffploit, an iterative, diff-driven exploit migration method structured around two key modules: the Context Module and the Migration Module. The Context Module dynamically constructs contexts derived from analyzing behavioral discrepancies between the target and reference versions, which capture the failure symptom and its related diff hunks. Leveraging these contexts, the Migration Module guides an LLM-based adaptation through an iterative feedback loop, balancing exploration of diff candidates and gradual refinement to resolve reproduction failures effectively. We evaluate Diffploit on a large-scale dataset containing 102 Java CVEs and 689 version-migration tasks across 79 libraries. Diffploit successfully migrates 84.2% exploits, outperforming the change-aware test repair tool TARGET by 52.0% and the rule-based tool in IDEA by 61.6%. Beyond technical effectiveness, Diffploit identifies 5 CVE reports with incorrect affected version ranges, three of which have been confirmed. It also discovers 111 unreported vulnerable versions in the GitHub Advisory Database.

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

↑