Field manual · ATO · Parts VII-VIII
Automating, Reporting, and the Checklist
The workflow, the critical nod, and why ATO never patches
Part VII: automating ATO: a real workflow
Section titled “Part VII: automating ATO: a real workflow”Why care: every flow in this manual produces the same ten costume tests. Automating that checklist turns one lucky find into a full-program sweep. The ATO hunter’s toolchain is a small discipline:
1. Map every flow: register, login, logout, reset, 2fa-enroll, 2fa-verify, email-change, password-change, session/refresh, oauth → draw the flow GRAPH (YEd/dot)2. Two (or three) accounts — always. Victim + attacker + occasionally attacker#2 (for cliffs)3. Burp's session handling rules: jobs that auto-swap cookies on certain hosts/paths → crawl each auth flow as each role without manual cookie juggling4. Every request/response in the auth graph gets 10 costume tests: - every identity-bearing field: change it to victim's - response manipulation (fake success responses) - token replay (double-spend the reset) - session fixation pairing (old session + new login) - type-juggling payloads on every code/OTP field5. Turbo Intruder for parallel race spots (2FA enroll+login, reset+reset, first-login session grant)6. For exotic flows: mine the mobile app's auth calls — mobile registration is a DIFFERENT flow, sometimes without 2FA at all, that mints fully-privileged sessions (the "mobile login door")The matrix to maintain (per target):
| Flow | Works? | Rate Limit? | Token format | Reusable? | Resets 2FA? | Kills sessions? |
|---|---|---|---|---|---|---|
| Email reset | ||||||
| SMS reset | ||||||
| Backup code login | ||||||
| OAuth | ||||||
| Mobile login | ||||||
| Support reset |
Filled in, this becomes your report’s evidence and your future hunts’ intuition.
Part VIII: reporting ATO: getting the critical nod
Section titled “Part VIII: reporting ATO: getting the critical nod”ATO reports write themselves IF they obey the severity ladder:
The mandatory skeleton:
TITLE: Full account takeover via [flow] — [one line root cause]STEPS: numbered, TWO test accounts, exact requests (Burp export), screenshots of victim-account access with attacker session visibleCHAIN: explain how a real attacker with NO knowledge uses this: "requires only victim's email address, which is public/known"CONTAINMENT: what you did NOT touch (their data read once, reverted)ROOT CAUSE: the ONE identity-binding question the flow didn't askSeverity phrases that work:
- “Full account takeover with knowledge of only the victim’s email address” → Critical
- “Bypass of 2FA, reduces account security to password-only” → High
- “Session persistence post-password-reset, stolen sessions survive remediation” → Medium/High
- “Username enumeration enabling credential stuffing at scale” → Low/Medium (impact phrased as stuffing)
The backbone of every ATO report is the “what-didn’t-they-ask” paragraph:
“The application generates and validates the reset token correctly, but the verification step never confirms the token was issued for the account whose password is being reset.”
Name the missing question. That sentence, the precise one line of code not written, is the entire root cause. Triagers love precision.
Chapter final: the ATO checklist
Section titled “Chapter final: the ATO checklist”____ Registered 2–3 test accounts, mapped ALL auth flows as graph____ Reset flow: twin-switch tested (email/userId in step C varies)____ Reset flow: token replay, longevity, cross-account use, single-use____ Token forensics: entropy, construction, guessability, timestamp prefixes____ Reset flow: host-header/X-Forwarded-Host poisoning on link generation____ OTP/type juggling: true/null/[]/""/0 on every code field____ OTP rate limit: lockout behavior + X-Forwarded-For rotation____ 2FA: disable-while-unauthenticated; skip-final-endpoint directly____ 2FA: backup codes visibility; enrollment race (Turbo Intruder)____ 2FA: does password reset erase 2FA? does logout kill session?____ Login: multi-step order (jump step 3 from step 1)____ Login: NoSQL/regex injections, array password, case tricks____ Login: what happens to old sessions after password change/reset____ JWT: kid/jku/x5u header manipulation, alg downgrade, claim injection____ OAuth: state binding, code substitution, redirect URI bypasses____ OAuth: email-trust registration (unicode/case/plus-tag matching)____ Email-change flow: password re-auth? verification binding? → reset chain____ Support/internal recovery endpoints called directly____ Mobile auth flow tested as a SEPARATE flow than web____ "says it verifies" vs "actually validates" checked on EVERY step____ Session fixation: pre-auth session ID reused post-auth____ All findings chained into the WORST possible realistic scenario, demonstrated safely, reported with the missing question namedEpilogue: why ATO never finishes patching
Section titled “Epilogue: why ATO never finishes patching”Security patches are code; trust decisions are constant. Each new developer, flow, mobile app, and integration adds a conversation with questions in it. The attacker needs only one question answered by the client, the UI, the token header, or nobody at all.
SQL fixes itself when the dev uses parameters.XSS fixes itself when the framework escapes.But "who are you — PROVE it — for WHICH account — in THIS step"is asked by humans, per flow, per release, forever.So next time you see a login page, any login page, any app, forever, don’t see a form. See a conversation. Then notice when nobody actually asked you the question:
“I never said I was the victim. I just said I forgot my password, and the server assumed the rest.”
That sentence is account takeover.
Next step: server-side request forgery chains that pre-ATO OAuth flows open into cloud metadata sit outside this manual. For those, or for the single-packet race-condition procedures referenced throughout it, see the Bug Hunting for Beginners race-condition chapter.
Open local graph around this page
Broken Access ControlFor authorized security research only: bug bounty programs, your own systems, or scoped engagements with written permission.