Anyone can download every customer's orders
The orders.list endpoint returns orders for whatever user id the browser sends, and never checks that it belongs to the person signed in. Anyone can change the id and read other customers' orders.
- file
- server/routers/orders.ts
- line
- 27
- found by
- AI code review