Security
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.

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.



