Skip to content

In-depth lesson · Account takeover

Typical fixes

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 51 to 100 of 270
  1. Enforce authentication and authorization checks on all API endpoints.

    Seen in 2 reports
  2. Invalidate all existing sessions when a password is changed.

    Seen in 2 reports
  3. Never include the reset token or session identifier in the HTTP response; send it only to the account owner's mailbox.

    Seen in 2 reports
  4. Bind the OTP to the email address that requested it and reject changes to the address between steps.

    Seen in 2 reports
  5. Accept a single email address on the reset endpoint and reject arrays.

    Seen in 2 reports
  6. Generate tokens from a cryptographically secure random source and invalidate old tokens on use.

    Seen in 2 reports
  7. Verify the integrity of code loaded by the synchronisation process and restrict local administrator access to the server.

    Seen in 2 reports
  8. Use the immutable subject claim as the unique identifier, not the mutable email claim.

    Seen in 2 reports
  9. Decide OTP success on the server and enforce authorisation on the password change endpoint.

    Seen in 2 reports
  10. Bind the authorisation code to the user and session that initiated the login.

    Seen in 2 reports
  11. Verify the current password on the server before any email or phone change, independent of client responses.

    Seen in 1 report
  12. Require the current account password before disabling two-factor authentication.

    Seen in 1 report
  13. Generate reset tokens with a cryptographically secure random value.

    Seen in 1 report
  14. Expire email change confirmation links and invalidate them after a password reset.

    Seen in 1 report
  15. Require re-authentication before adding a new email address to an account.

    Seen in 1 report
  16. Verify on the server that a social login token was issued for your app.

    Seen in 1 report
  17. Validate on the server that a submitted email is unique and belongs to the user.

    Seen in 1 report
  18. Require a valid reset token even when the user is already authenticated.

    Seen in 1 report
  19. Never include the one-time password in the network response.

    Seen in 1 report
  20. Do not allow 2FA setup before the email address is verified.

    Seen in 1 report
  21. Require proof of account ownership before a password reset endpoint changes a password.

    Seen in 1 report
  22. Do not treat client-side encryption as protection; verify the username matches the email and reset code on the server.

    Seen in 1 report
  23. Verify that the email submitted in the consent form matches one of the user's registered addresses.

    Seen in 1 report
  24. Invalidate the session server-side on logout, not just the browser cookie.

    Seen in 1 report
  25. Check that the verified signature covers the exact Response element the assertions are read from.

    Seen in 1 report
  26. Track used SAML assertion ids and reject replays.

    Seen in 1 report
  27. Add account-level throttling or CAPTCHA in addition to per-IP rate limiting.

    Seen in 1 report
  28. Revoke or re-validate linked OAuth identities when the account email changes.

    Seen in 1 report
  29. Verify the magic link domain as an Android App Link so other apps cannot intercept it.

    Seen in 1 report
  30. Verify that a client-supplied user id matches the authenticated session before linking 2FA.

    Seen in 1 report
  31. Enforce the pending 2FA setup requirement on the OAuth2 authorisation endpoint.

    Seen in 1 report
  32. Require re-authentication before an irreversible account deletion.

    Seen in 1 report
  33. Invalidate a reset token after it has been used.

    Seen in 1 report
  34. Send an email notification and write an audit log entry when 2FA is disabled.

    Seen in 1 report
  35. Only issue SSO tokens for email addresses the account has actually verified.

    Seen in 1 report
  36. Apply the authentication check to every path, not just some.

    Seen in 1 report
  37. Revoke the persistent remember-me token when a session is revoked.

    Seen in 1 report
  38. Tie the verification token to the account that requested it.

    Seen in 1 report
  39. Verify the token's own signature and validity when reissuing it, not just the refresh token.

    Seen in 1 report
  40. Do not apply submitted profile details to an existing account unless the submitter proves ownership of the email.

    Seen in 1 report
  41. Require authentication on the inventory endpoint.

    Seen in 1 report
  42. Do not leave long-lived reset cookies and handle link reuse with a clear error.

    Seen in 1 report
  43. Never return the reset token in the response; send it only by email.

    Seen in 1 report
  44. Accept a single email address and generate a separate token per recipient.

    Seen in 1 report
  45. Apply the same attempt limit to the final reset step as to earlier steps.

    Seen in 1 report
  46. Rate-limit and lock out repeated 2FA code attempts.

    Seen in 1 report
  47. Do not rely on client-side encryption of low-entropy tokens; rate-limit the authentication endpoint.

    Seen in 1 report
  48. Bind the resend request to the account being logged into and ignore a changed phone parameter.

    Seen in 1 report
  49. Enforce attempt throttling on the OTP verification endpoint.

    Seen in 1 report
  50. Rate-limit OTP sends per phone number and session.

    Seen in 1 report