A mental model for IDOR/BAC that's been more useful to me than any checklist
Most of the IDOR advice out there boils down to "change the number in the URL." That catches maybe the easiest 10% of what's actually there. The question that's actually moved the needle for me: "Who is supposed to reach this resource, and who can actually reach it?" Every access control bug — IDOR, broken function-level auth, privilege escalation — is a gap between those two answers. The ID or cookie or header is just the mechanism the gap happens to travel through. A few patterns I keep running into that don't get talked about much: - Multi-step forms that check auth on step 1 and never re-verify on steps 2-3 - Bulk/batch endpoints that check ownership on the first ID in an array and stop
…