Field manual · ATO · Chapter 0
Broken Authentication & Account Takeover
The most expensive bug in web security is a door made of questions
Broken authentication and account takeover: the complete field manual
Section titled “Broken authentication and account takeover: the complete field manual”Or: The Most Expensive Bug in Web Security Is a Door Made of Questions
Section titled “Or: The Most Expensive Bug in Web Security Is a Door Made of Questions”IDOR steals someone’s data. Broken Access Control steals someone’s power. Broken Authentication steals someone’s entire existence.
When you find account takeover (ATO), you’re not reporting a bug. You’re reporting: “I can become any user on this platform. The email they used, their money, their 2FA, their identity, all mine. The application will greet me by their first name.”
This is the crown of web hacking. Critical severity. The most repeated, most chained, most feared bug family in the entire field. It is almost never one vulnerability. It’s a flow with questions in it, and somewhere in the flow, a UI asks one question instead of the server.
Chapter 0: the mental model: every login is a conversation
Section titled “Chapter 0: the mental model: every login is a conversation”Why care: every account-takeover bug reduces to one question in this flow that the server never actually asked. Authentication flows are conversations. The server asks questions; you provide proof:
Registration: "Who are you? Prove you control that email."Login: "Prove you're the same person who registered."Password reset: "You forgot? Prove you control the recovery channel."2FA/MFA: "Password isn't enough. Prove the device too."Session: "Prove your token is mine."OAuth: "Let a third party vouch for you."Broken authentication is always one of four failure modes:
| Failure mode | The server actually said |
|---|---|
| 1. The question is fake | It displays a check but never validates it (OTP checked client-side) |
| 2. The answer is guessable | Reset token = timestamp. OTP = 4 digits, 100 tries allowed |
| 3. The answer can be intercepted | Token sent over data the attacker can read/influence |
| 4. The answer gets attached to the wrong identity | Token is valid, but the flow binds it to your session/email instead of the victim’s |
Every technique in this guide is one of those four. When you hunt ATO, your job is to walk through the entire conversation as a malicious participant and ask at each step: “who is actually being convinced here? The server, or just the frontend?”
Next step: Part I starts with the password reset flow, the single flow that breaks this way most often.
Open local graph around this page
Linked from here
Links out to
No outgoing internal links on this page.
Broken Access ControlFor authorized security research only: bug bounty programs, your own systems, or scoped engagements with written permission.