Severity: High. Category: Broken access control (insecure direct object reference). Affected endpoint: GET /api/invoices/{id}.
Description: The endpoint returns an invoice for any valid ID without checking that the invoice belongs to the authenticated user's organisation. Any logged-in user can read other customers' invoices by changing the number in the request.
Impact: An attacker with a free account could enumerate sequential invoice IDs and download billing names, addresses and amounts for every customer. This exposes personal data and would likely be reportable under data protection law.
Evidence: A request authenticated as a user in organisation A, for an invoice ID belonging to organisation B, returned HTTP 200 with the full invoice body. The same request without a valid session returned 401, confirming that authentication exists but ownership is not checked.