Deriving Semantics-Aware Fuzzers from Web API Schemas

Zac Hatfield-Dodds, Dmitry Dygalo
12/20/2021
84 citations
cs.CRcs.SE

Official code: schemathesis/web-api-fuzzing-project (14 stars, Python, last commit 2023-07-01).

Abstract

Fuzzing -- whether generating or mutating inputs -- has found many bugs and security vulnerabilities in a wide range of domains. Stateful and highly structured web APIs present significant challenges to traditional fuzzing techniques, as execution feedback is usually limited to a response code instead of code coverage and vulnerabilities of interest include silent information-disclosure in addition to explicit errors.

Show full abstract

Our tool, Schemathesis, derives structure- and semantics-aware fuzzers from web API schemas in the OpenAPI or GraphQL formats, using property-based testing tools. Derived fuzzers can be incorporated into unit-test suites or run directly, with or without end-user customisation of data generation and semantic checks. We construct the most comprehensive evaluation of web API fuzzers to date, running eight fuzzers against sixteen real-world open source web services. OpenAPI schemas found in the wild have a long tail of rare features and complex structures. Of the tools we evaluated, Schemathesis was the only one to handle more than two-thirds of our target services without a fatal internal error. Schemathesis finds 1.4 times to 4.5 times more unique defects than the respectively second-best fuzzer for each target, and is the only fuzzer to find defects in four targets.

View on arXivView PDF

Code Implementations(1)

141Python, RustApr 4, 20213 years ago

Similar Papers

Cite this paper

@article{hatfielddodds2021deriving,
  title  = {Deriving Semantics-Aware Fuzzers from Web API Schemas},
  author = {Zac Hatfield-Dodds and Dmitry Dygalo},
  year   = {2021},
  eprint = {2112.10328},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2112.10328}
}

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.10328.svg)](https://codeofpaper.com/paper/2112.10328)

Discussion