Interview practice question
Normal user calls admin API
Backend Engineering · Auth and Security · Intermediate
A penetration test found that a normal user could call DELETE /api/admin/users/42 successfully. What would you fix?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Broken function-level authorisation.
- Role check missing on endpoint.
- Deny by default for admin routes.
- Central middleware for role checks.
- Audit logs and tests per role.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.