KilnVM Live Labs /lab/schemathesis-api-fuzzing
Step 1 of 3 Docs Claim This Sandbox
Unclaimed Preview Sandbox · Hosted by KilnVM (15-run evaluation cap). Maintain this tool? Claim & embed on your docs →

Fuzz OpenAPI Endpoints with Schemathesis

Start a local Python HTTP API from an OpenAPI schema, catch a 500 server crash via Schemathesis property-based fuzzing, fix the bug, and pass all checks.

Step 1 of 3

Fuzz the local OpenAPI server and catch a 500 crash

/workspace/server.py runs an HTTP service matching openapi.json, but crashes with HTTP 500 when order_id > 50.

Start the local server and run Schemathesis (st run --checks all) to capture the failure in /workspace/fuzz-err.txt:

bash
python3 server.py >/tmp/api.log 2>&1 </dev/null & sleep 1 && st run openapi.json --checks all --max-examples 5 --url http://127.0.0.1:8765 > fuzz-err.txt 2>&1 || true; tail -n 20 fuzz-err.txt