API Security: Stop BOLA, Mass Assignment & Broken Auth
A practical guide to securing REST APIs: authentication vs authorization, BOLA/IDOR, rate limiting, input validation, and mass assignment, mapped to the OWASP API Top 10.
- Authentication proves who you are; authorization decides what you may touch. You need both, on every request.
- BOLA/IDOR (OWASP API1) is the #1 API risk: always verify server-side that the caller owns the object.
- Never trust client-supplied user_id, tenant_id, or role. Derive identity from the verified token only.
- Mass assignment (API6) turns a harmless field into privilege escalation. Allowlist the fields you accept.
- Rate limiting, input validation, and object-level checks are layers, not alternatives.
Guard what you build. Prove what you guard. This app needs JavaScript to run an audit; please enable it.