Customer order data exposed by API endpoint (broken object-level authorization)
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Affected component
Public order-status API (/api/v2/orders/{id}) on the example store’s production environment.
Description
The endpoint returns full order details based only on a sequential order number. It does not check whether the requester owns the order, so anyone can retrieve other customers’ orders without logging in.
Proof of concept
- Placed a test order with a tester-controlled account and noted its order number.
- Requested the order-status endpoint for that number without any session — full details were returned.
- Requested one adjacent order number to confirm the issue affects other customers; the response was redacted in our evidence and no further records were accessed.
Business impact
Names, delivery addresses, phone numbers and purchase history of all customers could be harvested at scale. This creates a reportable personal-data breach, regulatory exposure and a direct hit to customer trust.
Remediation
- Require authentication and verify on the server that the order belongs to the requesting customer.
- Replace sequential order numbers in public URLs with random, non-guessable identifiers.
- Add rate limiting and alerting for bulk requests to order endpoints.
References
OWASP API Security Top 10 (2023) — API1:2023 Broken Object Level Authorization · CWE-639
