Takopi Class  /  Checklist

OAuth and OIDC

Run top to bottom per client application and per identity provider (the relying party, the IdP and any broker in between are separate attack surfaces, so tick each one). Covers social login, OAuth 2.0 and OIDC flows and IdP trust; identity binding, email trust and account linking live in the account linking sheet, and generic 2FA, session cookies and forgot-password in their own sheets. Ticks are saved in this browser per target; "Copy as markdown" pastes the current state into your notes.

48 steps13 phasesticks stay in this browser, per target
0 of 48 done
01

Safety and setup

0 / 2
02

Map the flow

0 / 3
    • Identify the flow first (code, code+PKCE, implicit, hybrid, device), then walk only the attacks that apply to that flow
    • registration_endpoint, request_uri_parameter_supported, response_modes_supported, grant_types_supported, jwks_uri tell you which sinks exist before you probe
03

Non-happy paths

0 / 5
    • The security checks are written for the flow that succeeds, the cancel and error branches get the handler nobody reviewed
    • Compare the error redirect with the success redirect: same host, same checks on redirect_uri and state; note what the error page echoes back
    • A session that already counts as logged in before the callback completes is the lead
04

redirect_uri validation

0 / 9
    • Exact match of the full URL is the only sound design; every accepted variant is a lead, and the error body tells you which validator answered; also try cb?x=, cb%23, cb%3F, cb#, cb;
    • https://legit.example.attacker.example/cb, https://[email protected]/cb, https://attacker.example#@legit.example/cb, https://attacker.example/.legit.example/cb
    • urlparse().hostname and Java java.net.URL read the allowed host while the browser navigates to the attacker; Go net/url Parse fails closed on these, so it is not a bypass there
    • Scheme and origin are checked but the path is not; the traversal reaches the app's own open redirect or a user-content page and the code leaves in the next hop or in Referer
    • A bounce on the auth domain with no consent screen is an open redirect on a trusted origin; treat it as a chain link unless response_type=token returns a token to it
    • If only one order passes you know which copy is validated and which is used; a duplicated parameter error means it fails closed
    • A subdomain with a dangling record or takeover turns a wildcard registration into token theft
    • Prove impact on the resource server (read, write, delete with the delivered bearer), not at the authorization server
    • If the browser sends the parameter you can set it; a wildcard such as agent.example/* is the usual validator
05

response_type, response_mode and delivery

0 / 3
    • code id_token puts both in the fragment where a client guarding only the query never looks; servers that removed implicit still carry compatibility shims, that is where the bugs are
    • fragment survives redirects so any open redirect exfiltrates it
06

state, nonce and login CSRF

0 / 4
    • Missing or null state means the victim redeems the attacker's code and is logged into the attacker's context
    • state is meant to be opaque so nobody signs it; base64 JSON with an AppURL field once sent the access token to an attacker host
    • Read the mismatch error body: some servers return the expected value in the error JSON, which makes login CSRF trivial
07

Scope and grant confusion

0 / 4
    • Read what comes back each time: the scopes the token actually carries, whether the IdP falls back to a default set, and what the app does when a claim it expects (email, profile) is missing
    • An app that still logs you in, links an account or skips a check without the data it normally relies on is the lead, compare every variant against the normal flow
    • The RFC does not define scope there; verify both a JWT access token and the introspection result carry the upgrade
    • Lead with the zero-click cross-client variant, a consent-screen version reads as social engineering
08

Identity binding, email trust and account linking

0 / 1
    • Includes tokens minted for another client, aud, iss and tenant binding
09

id_token and token validation

0 / 4
    • nOnE, NoNE against libraries that case-fold, a flipped signature bit, an unknown crit header
10

Discovery, DCR and server-side fetches

0 / 3
    • Pre-auth, no credentials needed; then retry with an internal canary to prove an internal fetch
    • logo_uri (fetched when the consent page renders, XSS if no content-type check), jwks_uri (fetched on a JWT client assertion), sector_identifier_uri (fetched at registration or authorize), request_uris (fetched during authorize)
11

Client-side leaks and native flows

0 / 2
    • host.endsWith(allowed) with no protocol check lets an http:// page receive the token; endsWith(".example.com") accepts evil-example.com; a handler without origin check is only a finding if the state can be forged
    • A custom scheme can be claimed by a second installed app; with prompt=none it collects codes with no interaction
12

Desktop and web token handoff

0 / 5
    • Common shapes: a custom scheme or deep link back to the app, a localhost loopback port, the app polling a server store, a device code, and a one-time token in the URL the app opens
    • If the client picks the id, poll it from your first account for your second account's result; for device code, finish the sign-in in another profile and see which account the device receives
    • An unpinned port lets any local process listening on another port receive the code
    • Replay it from a second browser profile, tokens in a URL also land in browser history, proxy logs and Referer
    • Use a token from your second test account, an app that accepts it silently can be signed into the wrong account
13

IdP trust, logout and lifecycle

0 / 3
    • Revoking an app on web may not touch the mobile refresh path