REST API Fuzzing by Coverage Level Guided Blackbox Testing

Chung-Hsuan Tsai, Shi-Chun Tsai, Shih-Kun Huang
12/31/2021
cs.SE

Official code: iasthc/hsuan-fuzz (29 stars, Go, Apache-2.0, last commit 2022-05-14).

Abstract

With the growth of web applications, REST APIs have become the primary communication method between services. In order to ensure system reliability and security, software quality can be assured by effective testing methods.

Show full abstract

Black box fuzz testing is one of the effective methods to perform tests on a large scale. However, conventional black box fuzz testing generates random data without judging the quality of the input. We implement a black box fuzz testing method for REST APIs. It resolves the issues of blind mutations without knowing the effectiveness by Test Coverage Level feedback. We also enhance the mutation strategies by reducing the testing complexity for REST APIs, generating more appropriate test cases to cover possible paths. We evaluate our method by testing two large open-source projects and 89 bugs are reported and confirmed. In addition, we find 351 bugs from 64 remote API services in APIs.guru. The work is in https://github.com/iasthc/hsuan-fuzz.

View on arXivView PDF

Code Implementations(1)

iasthc/hsuan-fuzzOfficial100%
Apache-2.0

Hsuan-Fuzz: REST API Fuzzing by Coverage Level Guided Blackbox Testing

295GoJun 1, 20214 years agoApache-2.0

Similar Papers

Cite this paper

@article{tsai2021rest,
  title  = {REST API Fuzzing by Coverage Level Guided Blackbox Testing},
  author = {Chung-Hsuan Tsai and Shi-Chun Tsai and Shih-Kun Huang},
  year   = {2021},
  eprint = {2112.15485},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2112.15485}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2112.15485.svg)](https://codeofpaper.com/paper/2112.15485)

Discussion