[Paper Review] Open Problems in Fuzzing RESTful APIs: A Comparison of Tools
This paper evaluates seven state-of-the-art fuzzer tools for RESTful APIs using both black-box and white-box testing on 19 real-world APIs, measuring actual code coverage via JaCoCo and c8. It reveals that no fuzzer achieves more than 60% average line coverage, with EvoMaster and Schemathesis performing best, and identifies key open problems such as handling underspecified schemas and interactions with external services.
RESTful APIs are a type of web services that are widely used in industry. In the last few years, a lot of effort in the research community has been spent in designing novel techniques to automatically fuzz those APIs to find faults in them. Many real faults were automatically found in a large variety of RESTful APIs. However, usually the analyzed fuzzers treat the APIs as black-box, and no analysis of what is actually covered in these systems is done. Therefore, although these fuzzers are clearly useful for practitioners, we do not know what are their current limitations and actual effectiveness. Solving this is a necessary step to be able to design better, more efficient and effective techniques. To address this issue, in this paper we compare seven state-of-the-art fuzzers on 18 open-source and one industrial RESTful APIs. We then analyzed the source code of which parts of these APIs the fuzzers fail to generate tests for. This analysis points to clear limitations of these current fuzzers, listing concrete challenges for the research community to follow up on.
Motivation & Objective
- To assess the actual code coverage of state-of-the-art fuzzer tools on real RESTful APIs, moving beyond black-box metrics.
- To identify the limitations of current fuzzing techniques by analyzing uncovered code regions in real-world APIs.
- To provide a comprehensive, empirical comparison of fuzzers using both black-box and white-box testing strategies.
- To highlight open research problems in API fuzzer effectiveness, particularly around schema ambiguity and external service interactions.
Proposed method
- The study evaluates seven fuzzers—bBOXRT, EvoMaster, RESTest, RestCT, RESTler, RestTestGen, and Schemathesis—on 19 RESTful APIs (13 JVM-based, 6 Node.js-based).
- Each fuzzer is executed for 1 hour per run, repeated 10 times to account for algorithmic randomness.
- Line coverage is measured using JaCoCo for JVM APIs and c8 for Node.js APIs, providing objective, source-code-level metrics.
- The analysis includes both black-box testing (remote SUTs) and white-box testing (with access to source code and coverage data).
- A detailed manual inspection of uncovered code regions is performed to identify recurring challenges in fuzzer behavior.
- All experimental scripts and data are released open-source to ensure replicability.
Experimental results
Research questions
- RQ1What is the actual code coverage achieved by current state-of-the-art API fuzzers on real-world RESTful APIs?
- RQ2How do black-box and white-box testing strategies compare in terms of coverage for these fuzzers?
- RQ3What are the main code-level limitations preventing fuzzers from achieving higher coverage?
- RQ4What are the recurring challenges in fuzzer behavior related to schema design and external service dependencies?
Key findings
- EvoMaster achieved the highest average line coverage across the 19 APIs, followed closely by Schemathesis, though neither exceeded 60% average coverage.
- On average, all black-box fuzzers achieved less than 60% line coverage, indicating significant gaps in code exploration.
- White-box testing consistently outperformed black-box testing, demonstrating the value of internal code knowledge for test generation.
- A major limitation is the inability of fuzzers to handle underspecified or incomplete OpenAPI schemas, leading to incomplete test input generation.
- Fuzzers struggle to generate inputs that trigger complex logic involving external services, such as databases and third-party APIs.
- Manual code analysis revealed that many uncovered code regions involve conditional logic dependent on specific input structures or external state, which current fuzzers fail to explore.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.