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

REST API基于搜索的模糊测试的高级白盒启发式方法

Advanced White-Box Heuristics for Search-Based Fuzzing of REST APIs

Andrea Arcuri, Man Zhang, Juan Pablo Galeotti

AI总结:

本文针对REST API自动化测试中黑盒模糊测试受规范不足模式限制的问题,提出一系列新颖的白盒启发式方法,处理API模式与SQL数据库中规范不足的约束,并作为EvoMaster扩展实现,实证表明在部分API上取得显著改善。

摘要:

由于在工业界的重要性和广泛应用,REST API的自动化测试在近几年引起了研究界的极大兴趣。然而,文献中的大多数工作集中在黑盒模糊测试上。尽管现有的模糊测试器已被用于自动发现现有API中的许多故障,但仍存在一些未解决的研究挑战,阻碍了取得更好的结果(例如,在代码覆盖率和故障发现方面)。例如,规范不足的模式是黑盒模糊测试器的一个主要问题。目前,EvoMaster是唯一支持REST API白盒模糊测试的现有工具。在本文中,我们提供了一系列新颖的白盒启发式方法,包括例如如何处理API模式中规范不足的约束,以及SQL数据库中规范不足的模式。我们的新技术作为开源、基于搜索的模糊测试器EvoMaster的扩展实现。对来自EMB语料库的14个API,加上一个工业API的实证研究表明,在部分这些API上结果有显著改善。

英文摘要:

Due to its importance and widespread use in industry, automated testing of REST APIs has attracted major interest from the research community in the last few years. However, most of the work in the literature has been focused on black-box fuzzing. Although existing fuzzers have been used to automatically find many faults in existing APIs, there are still several open research challenges that hinder the achievement of better results (e.g., in terms of code coverage and fault finding). For example, under-specified schemas are a major issue for black-box fuzzers. Currently, EvoMaster is the only existing tool that supports white-box fuzzing of REST APIs. In this paper, we provide a series of novel white-box heuristics, including for example how to deal with under-specified constrains in API schemas, as well as under-specified schemas in SQL databases. Our novel techniques are implemented as an extension to our open-source, search-based fuzzer EvoMaster. An empirical study on 14 APIs from the EMB corpus, plus one industrial API, shows clear improvements of the results in some of these APIs.

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

↑