arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1806.09739cs.SE
收藏

REST-ler:自动智能模糊REST API

REST-ler: Automatic Intelligent REST API Fuzzing

Vaggelis Atlidakis, Patrice Godefroid, Marina Polishchuk

摘要:

随着亚马逊网络服务和微软Azure等强大的云计算平台的出现,云服务最近出现了爆炸式增长。如今,大多数云服务都是通过REST API访问的,而Swagger可以说是REST API最流行的接口描述语言。Swagger规范描述了如何通过其REST API访问云服务(例如,服务可以处理什么请求以及可以预期什么响应)。本文介绍了REST-ler,第一个自动化智能REST API安全测试工具。REST-ler分析Swagger规范并生成测试,通过其REST API执行相应的云服务。每个测试都被定义为一系列请求和响应。REST-ler通过以下方式智能地生成测试:(1)推断Swagger规范中声明的请求类型之间的依赖关系(例如,推断“请求B不应在请求A之前执行”,因为B将由A返回的资源id x作为输入变元)以及通过(2)分析来自在先前测试执行期间观察到的响应的动态反馈以便生成新的测试(例如,学习“请求序列A;B之后的请求C被服务拒绝”,因此在将来避免这种组合)。我们表明,这两种技术是必要的,彻底行使测试下的服务,同时修剪可能的请求序列的大搜索空间。我们还讨论了REST-ler在测试GitLab(一个大型流行的开源自托管Git服务)中的应用,以及发现的新错误。

英文摘要:

Cloud services have recently exploded with the advent of powerful cloud-computing platforms such as Amazon Web Services and Microsoft Azure. Today, most cloud services are accessed through REST APIs, and Swagger is arguably the most popular interface-description language for REST APIs. A Swagger specification describes how to access a cloud service through its REST API (e.g., what requests the service can handle and what responses may be expected). This paper introduces REST-ler, the first automatic intelligent REST API security-testing tool. REST-ler analyzes a Swagger specification and generates tests that exercise the corresponding cloud service through its REST API. Each test is defined as a sequence of requests and responses. REST-ler generates tests intelligently by (1) inferring dependencies among request types declared in the Swagger specification (e.g., inferring that "a request B should not be executed before a request A" because B takes as an input argument a resource-id x returned by A) and by (2) analyzing dynamic feedback from responses observed during prior test executions in order to generate new tests (e.g., learning that "a request C after a request sequence A;B is refused by the service" and therefore avoiding this combination in the future). We show that these two techniques are necessary to thoroughly exercise a service under test while pruning the large search space of possible request sequences. We also discuss the application of REST-ler to test GitLab, a large popular open-source self-hosted Git service, and the new bugs that were found.

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

↑