Interview practice question
Users can see other users' orders
Backend Engineering · API Design · Beginner
A security tester shows that changing the order ID in GET /orders/{id} lets users see other people's orders. What is wrong and how do you fix it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Broken object-level authorisation (IDOR).
- Check ownership on every request.
- Scope queries by user ID.
- Return 404 for others' resources.
- Add tests.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.