Invoice records readable across tenants by changing the ID
- Affected
GET /api/v1/invoices/{id}- Conditions
- Any authenticated user in any tenant.
- Reproduce
- Sign in as a user in tenant A.
- Request an invoice ID that belongs to tenant B.
- The full record is returned.
- Fix
- Check the invoice’s tenant against the session on the server, for every related operation.
- Retest
- Original request now returns 404. Closed.