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

图API中的污点分析:聚焦于失效的访问控制

Taint Analysis for Graph APIs Focusing on Broken Access Control

Brandenburg University of Technology(勃兰登堡工业大学);Universitat Politècnica de Catalunya(加泰罗尼亚理工大学)

Leen Lambers, Lucas Sakizloglou, Taisiya Khakharova, Fernando Orejas

AI总结:

本文提出了一种系统性的图API污点分析方法,专注于失效的访问控制。通过污点节点和API调用的源汇分析,结合图变换规则和关键对分析,检测直接和间接的污点信息流,以识别潜在的访问控制漏洞。

摘要:

我们提出了首个系统性的图API静态和动态污点分析方法,专注于失效的访问控制。该方法包括:对代表需要特定权限才能检索或操作的数据的图API节点进行污点标记,并识别与源和汇相关的API调用。然后,我们静态分析API源和汇调用之间是否存在污点信息流。为此,我们使用图变换规则建模API调用。随后,我们利用关键对分析来自动分析源调用规则和汇调用规则之间的潜在依赖关系。我们区分直接和间接的污点信息流,并论证在何种条件下关键对分析能够检测直接和间接的污点流。静态污点分析(i)识别需要进一步审查的流,因为污点节点可能由API调用创建并被另一个API调用使用或操作,而没有必要的权限;(ii)可用于系统性地设计动态安全测试以检测失效的访问控制。动态污点分析检查静态污点分析中检测到的潜在失效访问控制风险是否确实存在。我们将其应用于GitHub GraphQL API的一部分。该应用展示了我们的分析能够系统性地检测两种类型的失效访问控制:一种情况是API用户可能无法访问或操作信息,尽管他们应能如此;另一种情况是API用户(或攻击者)可能能够访问/操作信息,而他们不应能。

英文摘要:

We present the first systematic approach to static and dynamic taint analysis for Graph APIs focusing on broken access control. The approach comprises the following. We taint nodes of the Graph API if they represent data requiring specific privileges in order to be retrieved or manipulated, and identify API calls which are related to sources and sinks. Then, we statically analyze whether a tainted information flow between API source and sink calls occurs. To this end, we model the API calls using graph transformation rules. We subsequently use Critical Pair Analysis to automatically analyze potential dependencies between rules representing source calls and rules representing sink calls. We distinguish direct from indirect tainted information flow and argue under which conditions the Critical Pair Analysis is able to detect not only direct, but also indirect tainted flow. The static taint analysis (i) identifies flows that need to be further reviewed, since tainted nodes may be created by an API call and used or manipulated by another API call later without having the necessary privileges, and (ii) can be used to systematically design dynamic security tests for broken access control. The dynamic taint analysis checks if potential broken access control risks detected during the static taint analysis really occur. We apply the approach to a part of the GitHub GraphQL API. The application illustrates that our analysis supports the detection of two types of broken access control systematically: the case where users of the API may not be able to access or manipulate information, although they should be able to do so; and the case where users (or attackers) of the API may be able to access/manipulate information that they should not.

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

↑