Skip to content

In-depth lesson · Account takeover

Tips for beginners

Every point the Account takeover reports back under this heading, best-backed first, each with the reports it is seen in.

Back to the lesson 1 to 14 of 14
  1. Test session behaviour around password change, 2FA activation and logout. Log in on two browsers, change the password in one, and check the other. Log out, replay the old cookie, and see whether it still works. Note the session identifier before and after login to see whether it is regenerated.

    Seen in 12 reports
  2. For one-time codes, test whether the server or the client decides success. Intercept a wrong-code response and change its status or success flag, then see whether the flow continues. Also check for missing attempt limits on short numeric codes, and whether a fixed default code is accepted.

    Seen in 9 reports
  3. Look at OAuth and social login linking. Pre-register an account with a victim's email and a password you choose, then see whether their later social sign-in attaches to your account without confirmation. Also check whether email ownership is verified at signup before any linking happens.

    Seen in 9 reports
  4. When you find a bypass, check the obvious variations before writing up. If the Host header is validated, try a forwarding header. If one code is rejected, request a fresh one and see whether the attempt counter resets. If one login path enforces the second factor, look for alternate paths, recovery flows or mobile endpoints that skip it.

    Seen in 8 reports
  5. Check email and phone change endpoints. Try changing the address without the current password, and see whether re-verification is required for the new address. If you can move the account to an address you control, a reset then completes the takeover.

    Seen in 7 reports
  6. Inspect response bodies, not just emails. Several reports turned on the reset token or URL appearing in the API response. Request a reset for an account you control and read the full response for any token, session identifier or validation object.

    Seen in 7 reports
  7. Try parameter substitution carefully. Change the user identifier or email in the reset submission to another account and see whose password changes, and try an array of addresses to see whether the token goes to more than one inbox. Keep these tests on accounts you own or are authorised to test.

    Seen in 7 reports
  8. Do not overlook the unglamorous sources. Exposed .git directories and log files with plaintext request data have handed over credentials directly, and mobile deep links have completed flows to obtain tokens. A quick look at these can be worth more than a long hunt through the login form.

    Seen in 7 reports
  9. Start with the password reset flow, since it was the most common place for takeover bugs in this batch. Walk the whole flow slowly: request, email, link, form, submission. Note what the link contains, whether the token is single use, whether it expires, and whether the response body carries anything that should only have gone to the mailbox.

    Seen in 6 reports
  10. On the reset request, watch how the emailed link is built. Try changing the Host header, adding a forwarding header, and sending duplicate Host headers, then check where the link points. This is a well-known class, so confirm the link actually uses your value before reporting.

    Seen in 6 reports
  11. Check token lifecycle rather than just token format. Request several tokens and see whether older ones still work, use a link twice, wait for expiry, and change the account email then try an old token. These are cheap tests that map directly to real root causes.

    Seen in 6 reports
  12. Show impact by completing the takeover, not by describing a theoretical one. The strongest evidence is logging in as the victim account after the bypass, or showing that a session you should not have still works. A changed response flag with no resulting access is weak.

    Seen in 6 reports
  13. Stay in scope. Check the program's policy before testing host header tricks, brute force, or anything that sends mail to third parties. Rate-limit and OTP brute force tests in particular can cross into out-of-scope activity, and testing against real users' accounts is not acceptable.

    Seen in 6 reports
  14. Avoid the common mistake of reporting enumeration or a missing rate limit on its own as account takeover. Those are only takeover when you can show the bypass leads to access. Likewise, a reset link that merely reflects a header without the token travelling to your host is not a takeover.

    Seen in 5 reports