Blog Details
Blog Details
ARTICLE

ARTICLE

ARTICLE

BACKEND - SECURITY - CLOUD -
Details

Details

IDOR, injection and secrets: a security checklist for APIs

Security

IDOR, injection and secrets: a security checklist for APIs

IDOR, injection and secrets: a security checklist for APIs

The vulnerabilities that actually get exploited are rarely exotic. An endpoint that trusts the ID in the URL, a query built with string concatenation, a secret committed to the repository. These are cheap to find and cheap to fix, if someone looks.

Broken object-level authorisation, or IDOR, is the most common one. The fix is structural: every query that loads a resource is scoped to the current user or tenant, and a test tries to fetch someone else’s record and expects a 404.

Injection is mostly solved by parameterised queries and an ORM, until someone writes a raw query for performance. Secrets belong in environment variables or a vault, rotated when anyone leaves, and scanned for in CI.

A checklist only works if it runs on every release. I turn mine into CI jobs: dependency audit, secret scanning and a small set of authorisation tests that fail the build. Security becomes part of how code ships, not a phase at the end.

IDOR, injection and secrets: a security checklist for APIs — illustration

Before go-live


01. Authorisation
  • Every resource query scoped to the caller.

  • Negative tests for cross-user and cross-tenant access.

02. Input
  • Validation at the boundary with typed requests.

  • Parameterised queries only, raw SQL reviewed.

03. Secrets & dependencies
  • No secrets in code; vault or environment, rotated.

  • Composer, NuGet and npm audits in CI with an upgrade plan.

Subscribe
Available for new projects

Mon – Fri · 9:00 – 18:00 UTC

Remote · EU & US time zones

Available for new projects

Mon – Fri · 9:00 – 18:00 UTC

Remote · EU & US time zones