Changing an account ID in the billing API exposes every customer’s invoices
What we found
The billing API returned invoices by account ID and only checked that the request carried a valid session. By changing the ID in a request, a tester signed in as one customer downloaded invoices and billing addresses for other customers.
Impact
Any signed-in customer can read every other customer’s billing history.
How to fix it
Check on the server that the requested account belongs to the session’s organization on every billing endpoint, use non-sequential identifiers, and add an automated authorization test for each new endpoint.






