Access control enforces who can do what to which object. The most common bug is an IDOR (Insecure Direct Object Reference): GET /invoices/1042 returns any invoice because the server only checks that the user is logged in, not that they own invoice 1042. Typical failures Missing ownership/tenant check on reads, updates or deletes Hiding admin buttons in the UI but not protecting the API endpoint Trusting role or user ID values sent by the client (hidden fields, JWT claims without verification) Permissive CORS, directory listing, force browsing to /admin Privilege escalation through mass assignment ({"role": "admin"} in a profile update) Controls Deny by default; check permissions server-side on every request. Scope queries by owner/tenant: WHERE id = ? AND ownerid = ?. Centralise…