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

Java项目中第三方库漏洞的兼容修复

Compatible Remediation on Vulnerabilities from Third-Party Libraries for Java Projects

Lyuye Zhang, Chengwei Liu, Zhengzi Xu, Sen Chen, Lingling Fan, Lida Zhao, Jiahui Wu, Yang Liu

摘要:

随着开源软件中漏洞的日益暴露,软件组成分析(SCA)被广泛应用于揭示软件项目中的第三方库及其相关漏洞。除此之外,SCA工具还采用各种补救策略来修复漏洞,其质量差异很大。然而,无效的补救可能会导致副作用,如编译失败,这会阻碍用户的接受。根据我们的研究,现有的SCA工具无法正确处理用户对修复项目兼容性的关注。为此,我们提出了适用于Maven项目的第三方库兼容修复(CORAL),以在不破坏项目的情况下修复漏洞。评估结果表明,CORAL不仅修复了87.56%的漏洞,优于其他工具(最好的75.32%),而且实现了98.67%的编译成功率和92.96%的单元测试成功率。此外,我们发现,在流行的Maven项目中,78.45%的漏洞可以在不破坏编译的情况下修复,其余的漏洞(21.55%)可以通过破坏编译的升级来修复,甚至无法通过升级来修复。

英文摘要:

With the increasing disclosure of vulnerabilities in open-source software, software composition analysis (SCA) has been widely applied to reveal third-party libraries and the associated vulnerabilities in software projects. Beyond the revelation, SCA tools adopt various remediation strategies to fix vulnerabilities, the quality of which varies substantially. However, ineffective remediation could induce side effects, such as compilation failures, which impede acceptance by users. According to our studies, existing SCA tools could not correctly handle the concerns of users regarding the compatibility of remediated projects. To this end, we propose Compatible Remediation of Third-party libraries (CORAL) for Maven projects to fix vulnerabilities without breaking the projects. The evaluation proved that CORAL not only fixed 87.56% of vulnerabilities which outperformed other tools (best 75.32%) and achieved a 98.67% successful compilation rate and a 92.96% successful unit test rate. Furthermore, we found that 78.45% of vulnerabilities in popular Maven projects could be fixed without breaking the compilation, and the rest of the vulnerabilities (21.55%) could either be fixed by upgrades that break the compilations or even be impossible to fix by upgrading.

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

↑