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

MINER:一种混合数据驱动的REST API模糊检测方法

MINER: A Hybrid Data-Driven Approach for REST API Fuzzing

Chenyang Lyu, Jiacheng Xu, Shouling Ji, Xuhong Zhang, Qinying Wang, Binbin Zhao, Gaoning Pan, Wei Cao, Raheem Beyah

摘要:

近年来,出现了REST API模糊化来探索云服务上的错误。其性能高度依赖于序列构造和请求生成。然而,现有的REST API模糊器在生成具有良好构造的请求的长序列以触发云服务中难以到达的状态时遇到了困难,这限制了它们查找深度错误和安全漏洞的性能。此外,它们无法找到在请求生成过程中使用未定义参数所导致的特定错误。因此,在本文中,我们提出了一种新的混合数据驱动的解决方案,名为MINER,三个新的设计一起工作,以解决上述限制。首先,MINER收集通过云服务检查的请求的有效序列作为模板,并将更多的执行分配给长序列模板。其次,为了提高序列模板中请求的生成质量,MINER创造性地利用最先进的神经网络模型来预测关键请求参数并为其提供适当的参数值。第三,MINER实现了一个新的数据驱动的安全规则检查器,以捕获由未定义的参数引起的新类型的错误。我们通过11个REST API在GitLab、Bugzilla和WordPress上对MINER与最先进的模糊器RESTler进行了评估。结果表明,MINER的平均通过率比RESTler高23.42%。MINER发现的唯一错误比RESTler平均多97.54%,手动分析后的可重复错误多142.86%。我们已经报告了所有新发现的错误,其中7个已经被相应的供应商确认为逻辑错误。

英文摘要:

In recent years, REST API fuzzing has emerged to explore errors on a cloud service. Its performance highly depends on the sequence construction and request generation. However, existing REST API fuzzers have trouble generating long sequences with well-constructed requests to trigger hard-to-reach states in a cloud service, which limits their performance of finding deep errors and security bugs. Further, they cannot find the specific errors caused by using undefined parameters during request generation. Therefore, in this paper, we propose a novel hybrid data-driven solution, named MINER, with three new designs working together to address the above limitations. First, MINER collects the valid sequences whose requests pass the cloud service's checking as the templates, and assigns more executions to long sequence templates. Second, to improve the generation quality of requests in a sequence template, MINER creatively leverages the state-of-the-art neural network model to predict key request parameters and provide them with appropriate parameter values. Third, MINER implements a new data-driven security rule checker to capture the new kind of errors caused by undefined parameters. We evaluate MINER against the state-of-the-art fuzzer RESTler on GitLab, Bugzilla, and WordPress via 11 REST APIs. The results demonstrate that the average pass rate of MINER is 23.42% higher than RESTler. MINER finds 97.54% more unique errors than RESTler on average and 142.86% more reproducible errors after manual analysis. We have reported all the newly found errors, and 7 of them have been confirmed as logic bugs by the corresponding vendors.

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

↑