API security

API security

APIs are usually the soft underbelly of an app. Most real-world high-impact bugs in the last few years live at the API layer.

Prereqs

Stage 1 — fundamentals

Stage 2 — intermediate

Stage 3 — advanced

  • API gateway and WAF bypasses.
  • JWT cryptographic attacks beyond none / alg-confusion: jwt-key-confusion, jwt-jku-jwk-injection.
  • Multi-tenant SaaS — cross-tenant data access patterns.
  • Webhook abuse and SSRF via outbound API calls (ssrf-to-cloud).
  • Read [Hacking APIs (Corey Ball)] cover to cover.

When you’re “done”

  • You can spec an unknown API in <30 min from traffic alone.
  • You instinctively probe every ID parameter for bola and every state transition for bfla.
  • You can articulate the difference between authentication, session, and authorisation flaws and which one a given API mishandles.