Tips

API security tips

API security is the classic bug classes seen through an API: broken object and function level authorization, mass assignment, too much data in responses and missing rate limits. Mobile and partner APIs are often tested less than the web app.

Published tips, newest first. Payloads and commands are shown as plain text.

API security: how to hunt it

Where to look

  • Old API versions, endpoints found in JavaScript bundles, and OpenAPI or Swagger files.
  • Objects and functions reachable with another user’s ID or a lower-privilege token.
  • Extra fields accepted on create and update (mass assignment), and extra fields returned.
  • Costly or sensitive endpoints with no rate limit.

What proves it

Give the exact requests, the role of each token (all your own test accounts) and the response that proves the broken rule.

Read further

Writeups on API security, by hunters and researchers, most with a short summary.

Related classes