Engineering Auth Authorization

Authorization Review Prompt

Hunt the broken-access-control bug — review code for missing per-resource checks, IDOR, and 'logged in' mistaken for 'allowed', the vulnerability class that tops the OWASP list.

Overview

Broken access control is the most common serious web vulnerability, and a generic review skims past it because the code looks fine — it authenticates, it just doesn't authorize. This prompt reviews specifically for authorization: is every object access checked against the caller's permissions, not just their login? Can a user reach another user's record by changing an ID? It finds the per-resource check that isn't there.

Why This Works

  • Broken access control is OWASP #1; a dedicated lens catches what generic review misses
  • IDOR hides in code that authenticates correctly but never authorizes
  • Checking API-level (not UI) enforcement catches the most common real bypass

Best for

  • Apps with multi-user data and per-record access
  • Code that handles other users' or tenants' data
  • Pre-release review of authorization-sensitive paths

Not for

  • Designing the access model — use the RBAC Design Prompt
  • Broad security review — use the Security Code Review Prompt

Use cases

  • Reviewing endpoints for missing object-level authorization
  • Hunting IDOR before a release
  • Checking that API authorization isn't enforced only in the UI

Tip: Save time by exploring related resources and tools that integrate with this workflow.

Explore all resources