Broken access control on order records (IDOR)
OWASP A01: Broken Access Control
Impact. Any authenticated user could read any other customer's order, including name, shipping address, and line items, by changing the numeric id in the request path.
Proof
GET /api/orders/4012 (as user 8830) → 200 OK · returned order belonging to user 2261
Remediation. Enforce an ownership check on the order lookup: scope the query to the authenticated user id, and return 404 (not 403) for records they do not own.
Retest. Replayed after fix → 404 Not Found. Confirmed closed.