In plain words
Broken access control means the server doesn't check that this particular user may do this action on this particular record, so changing an ID or calling an unlinked route exposes someone else's data.
Where you see it
Harbor's invoice page loads /api/invoices/inv_1042. The route checks that someone is signed in, but not that the invoice belongs to their account, so a customer who edits the ID can read another company's invoice. It's the top category in the OWASP Top 10.
What goes wrong
- Hiding the button and calling it secure
Removing the Delete button for viewers doesn't stop a viewer sending DELETE /api/projects/42 from an HTTP client. Check every permission on the server, on every route.
- Checks scattered through every handler
When each route writes its own ownership check, one new route without it is all it takes. Put the rule in one place, such as a data-access layer that always filters by account, or row-level security in Postgres.
- Trusting IDs and roles the client sends
An accountId or role in the request body is a claim, not a fact. Take the account and role from the server-side session, never from the request.
{ "accountId": "acc_7", "role": "admin" }
What to tell your agent
Quick check
Sign in to earn +10 XP for itHarbor hides the Delete project button from viewers. What else must be true for viewers to be unable to delete projects?