Interview Prep/DevSecOps/Foundations, Threat Modeling and OWASP

What is Broken Access Control and what is an IDOR?

IntermediateConceptFoundations, Threat Modeling and OWASP
Answer

Broken access control means a user can act outside their intended permissions. An IDOR (insecure direct object reference) is the classic case: GET /api/invoices/1042 returns another customer's invoice because the server checks that you are logged in but not that the invoice belongs to you.

Fix: enforce authorisation server-side on every request using the object's owner (WHERE id = ? AND tenant_id = ?), deny by default, and use non-guessable IDs as defence in depth, not as the control. DAST often misses IDORs; they need authorisation tests in the test suite.

All DevSecOps questions Roadmap: Security in the pipeline

More on Foundations, Threat Modeling and OWASP