Artemis:通过LLM辅助的过程间路径敏感污点分析实现对服务器端请求伪造的准确检测
Artemis: Toward Accurate Detection of Server-Side Request Forgeries through LLM-Assisted Inter-Procedural Path-Sensitive Taint Analysis
AI总结:
本文提出Artemis,一种用于检测PHP Web应用中SSRF漏洞的静态污点分析工具,通过构建调用图、制定防过度污染规则及分析路径条件兼容性来提高检测准确率并减少误报。
摘要:
PHP Web应用程序中服务器端请求伪造(SSRF)漏洞是不可避免的。现有的用于检测PHP Web应用程序漏洞的静态工具既不包含用于提高检测准确性的SSRF相关特性,也不考虑PHP的动态类型特性。在本文中,我们提出了Artemis,一种用于检测PHP Web应用程序中SSRF漏洞的静态污点分析工具。首先,Artemis将PHP内置函数和第三方函数提取为候选源和汇点函数。其次,Artemis构建显式和隐式调用图来推断函数间的关系。第三,Artemis基于一组防止过度污染的规则执行污点分析,并在无法进行SSRF利用时暂停。第四,Artemis分析路径条件的兼容性以修剪误报。我们实现了Artemis的原型并在250个PHP Web应用程序上对其进行了评估。Artemis报告了207条真实漏洞路径(106个真实SSRF),其中包含15个误报。在检测到的106个SSRF中,有35个是新发现并报告给开发者的,其中24个已被确认并分配了CVE ID。
英文摘要:
Server-side request forgery (SSRF) vulnerabilities are inevitable in PHP web applications. Existing static tools in detecting vulnerabilities in PHP web applications neither contain SSRF-related features to enhance detection accuracy nor consider PHP's dynamic type features. In this paper, we present Artemis, a static taint analysis tool for detecting SSRF vulnerabilities in PHP web applications. First, Artemis extracts both PHP built-in and third-party functions as candidate source and sink functions. Second, Artemis constructs both explicit and implicit call graphs to infer functions' relationships. Third, Artemis performs taint analysis based on a set of rules that prevent over-tainting and pauses when SSRF exploitation is impossible. Fourth, Artemis analyzes the compatibility of path conditions to prune false positives. We have implemented a prototype of Artemis and evaluated it on 250 PHP web applications. Artemis reports 207 true vulnerable paths (106 true SSRFs) with 15 false positives. Of the 106 detected SSRFs, 35 are newly found and reported to developers, with 24 confirmed and assigned CVE IDs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。