FlashcardNot attempted
Authentication vs authorization
Recall it before you reveal
What is the difference between authentication and authorization, and which one does IDOR break?
Space to reveal
Show answer & explanation
- Authentication: who are you? (login, tokens, sessions)
- Authorization: what are you allowed to do? (ownership and role checks)
IDOR is an authorization bug. The user is logged in correctly, but the server trusts an id from the request (/user/124) without checking that it belongs to them. The fix goes on every API endpoint, not in the UI.