Skip to content

Attacking APIs

devloop edited this page Oct 22, 2024 · 1 revision

Attacking Endpoints from Swagger/OpenAPI Documentation

Wapiti can use Swagger or OpenAPI documentation to automatically attack the endpoints declared within it.

To do this, use the --swagger option, which accepts either a local file path or a URL to the Swagger/OpenAPI file.

wapiti -u "http://target.tld" --swagger /path/to/swagger.json

or

wapiti -u "http://target.tld" --swagger "http://target.tld/api-docs/swagger.json"

By leveraging the Swagger/OpenAPI specification, Wapiti can identify all documented endpoints and test them for vulnerabilities.