Broken Access Control: Preventing IDOR Vulnerabilities
Broken access control means a user can do something they shouldn't be allowed to. The most common form is IDOR (insecure direct object reference): change an ID in a request and see someone else's data. The vulnerable pattern // GET /api/invoices/1043 app.get('...