Module 01 · Security · Think Like an Attacker · about 15 min to read
Continue where you left off ×
Authorization & Identity
Authorization and Identity · Open board
The same request asked twice: first whether you are really you, then whether the thing you’re asking for is actually yours.
Before you start. Authentication proved who is asking, a token that says “this really is you”. This lesson answers the harder question that token can’t: now that the system knows who you are, what are you actually allowed to touch?
The idea in 30 seconds
Authentication proves who you are. Authorization decides what you may touch, and skipping that second check is the single most common way real systems leak data.
A program with more access than you can be fooled into using that access on your behalf without checking who actually asked. That mistake is called a confused deputy.
A check that only verifies “is this a valid login” and never verifies “does this specific thing belong to this specific user” lets anyone read anyone else’s data just by changing an id. That bug is IDOR.
Making ids hard to guess buys time. It never replaces the check that the item belongs to the person asking for it.
OAuth lets an app get permission for one slice of your account, like your photos, without your password ever leaving your own login page.
What OAuth hands an app proves what it may do, not who is holding it; OIDC is the separate layer that proves your identity to the app.
Read the story
Lesson 4 of 39 in Security
The rest of this lesson is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year .
See plans Already a member? Sign in
Or start free : a free account opens lessons 2 and 3 of every track.
In this lesson The badge that gets you in, and the door that still asks 1988: the clerk who wrote over the wrong file The question a role can’t answer: is this door yours? The pass that only opens the mailroom The pass proves permission. A name tag proves who. Terms it explains: authorization, confused deputy, IDOR, OAuth, OIDC, RBAC, roles, ABAC, ReBAC, ACL, principal, resource, resource owner, client, authorization server, resource server, access token, scopes, consent screen, PKCE, ID token, authorization (authZ), complete mediation, OAuth 2.0, scope.
Review Security
Mark as read Saved in this browser, and to your account when you sign in.