Any logged-in user can read and change every customer's invoices
- Where
GETandPUT /api/v2/invoices/{id}- What we did
- Changed the invoice number in the request. The API returned another company's invoice, and accepted edits to it, without checking who owned it.
- Business impact
- Anyone with a free trial account could download every customer's invoices and bank details, and redirect their payments. That means fraud losses, a breach you must report under the DPDP Act, and lost enterprise deals.
- How to fix
- Check that the invoice belongs to the signed-in account before returning it.
- Score
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N- Status
- Fixed and confirmed on retest
An illustrative example of how findings appear in our reports.