Customers can read other customers' records
The API checks that someone is signed in, but not that the record they ask for belongs to their account. Changing the record number in a request to the invoices and projects endpoints returns another customer's data.
Any customer can see any other customer's invoices and project details. That is a data breach waiting for someone curious enough to try it, with the reporting duties and loss of trust that follow.
- Add one shared check that every record lookup is limited to the signed-in account.
- Apply it to every endpoint that takes a record number, starting with invoices and projects.
- Add tests that try to read another account's records and expect a refusal.
Evidence: File and line references, with the request used to reproduce it, are in the full report (illustrative).
Effort: 2 to 4 days (illustrative)
Your own developer, from these steps. No specialist needed. If you have no developer, I can do it as a separate piece of work, quoted on its own.