Another customer’s order fetched by changing a number
- Garmur Scale
75of 100Urgent
How the score was reached Technical severity Base score 6.5 × 3 20 / 30 Proof Exploited during the test 25 / 25 Exposure From the internet, with an account 12 / 20 What is reached Other users’ data or access 8 / 15 Chain Combines with another finding in the report 10 / 10 Garmur Scale Urgent 75 / 100 - CVSS
CVSS 3.1 base score: 6.5
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N- What
The API returns an order by its number without checking whether the logged-in user owns the order.
- Where
https://app.example.is/api/orders/{id}- Evidence
User A is logged in and fetches an order that belongs to user B:
GET /api/orders/1042 HTTP/1.1 Host: app.example.is Authorization: Bearer <user A’s token> HTTP/1.1 200 OK { "id": 1042, "customer": "User B", "address": "1 Example Street" }- Impact
Any logged-in user can read every other user’s orders by counting through the numbers.
- Chain
EXAMPLE-02 → EXAMPLE-01. An outsider creates an account (EXAMPLE-02) and with it reads every customer’s orders (this finding).
- Fix
Check on the server that the order belongs to the logged-in user before returning it. The same check on every endpoint that takes an identifier.
- After the retest
Fixed. The same call now returns 404.