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 151 to 200 of 270
  1. Revoke sessions and linked-identity state when a provider is disconnected.

    Seen in 1 report
  2. Require fresh authentication for the target account in the switch-account flow.

    Seen in 1 report
  3. Make authentication decisions server-side and issue a server-side session.

    Seen in 1 report
  4. Use an app-controlled timer rather than the device clock for the lock countdown.

    Seen in 1 report
  5. Validate the origin and target of deep links and do not pass session cookies to untrusted destinations.

    Seen in 1 report
  6. Show a clear warning and require confirmation that the user intends to grant access to the client.

    Seen in 1 report
  7. Bind session identifiers to the original client and limit their lifetime.

    Seen in 1 report
  8. Require the current password before changing it.

    Seen in 1 report
  9. Use a random recovery password rather than one derived deterministically from predictable inputs.

    Seen in 1 report
  10. Include the FTP account and alternative-to-user settings in the connection reuse cache key.

    Seen in 1 report
  11. Include the GSSAPI delegation level in the connection reuse comparison.

    Seen in 1 report
  12. Use a bitwise AND against the protocol-family bitmask instead of equality.

    Seen in 1 report
  13. Generate unpredictable CAPTCHA challenges.

    Seen in 1 report
  14. Make authentication requests single-use so they cannot be replayed.

    Seen in 1 report
  15. Harden the scanning engine against crafted files that evade detection.

    Seen in 1 report
  16. Remove dangling DNS records pointing at unclaimed services.

    Seen in 1 report
  17. Revoke all other active sessions when a password is changed.

    Seen in 1 report
  18. Apply brute-force protection to the endpoint that validates the reset token, not just the rest of the flow.

    Seen in 1 report
  19. Use random, unguessable reset tokens instead of time-based UUIDv1 values.

    Seen in 1 report
  20. Do not use a user-supplied email to identify and authenticate a user; verify credentials before setting an authentication cookie.

    Seen in 1 report
  21. Add rate limiting to the SMS code validation endpoint and require re-verification when a phone number is added to another account.

    Seen in 1 report
  22. Check that the user has completed the second authentication factor before returning recovery codes.

    Seen in 1 report
  23. Verify that a primary email address belongs to the user before using it to match invitations and grant project access.

    Seen in 1 report
  24. Properly authenticate the user's session during the Socket.IO connection handshake.

    Seen in 1 report
  25. Enforce password confirmation on all account-change endpoints and do not allow URL parameters to skip the password step during 2FA setup.

    Seen in 1 report
  26. Add rate limiting or account lockout to the login endpoint.

    Seen in 1 report
  27. Re-check email ownership on profile update requests and do not mark a supplied email as verified without confirmation.

    Seen in 1 report
  28. Do not trust the client-supplied request path and parameters; verify the 2FA code before performing a password change.

    Seen in 1 report
  29. Give auto-login tokens a short lifetime, make them single-use, and revoke them on password reset and MFA enrolment.

    Seen in 1 report
  30. Require a server-generated identity verification token before starting a chat session.

    Seen in 1 report
  31. Limit or lock out repeated failed OTP submissions.

    Seen in 1 report
  32. Require the email owner to confirm ownership before linking a Google sign-up to an existing unverified account.

    Seen in 1 report
  33. Always check the SAML response signature, even when the signature element is absent.

    Seen in 1 report
  34. Regenerate the session identifier after login.

    Seen in 1 report
  35. Use a secure, single-use token instead of a predictable static user identifier, and do not allow link reuse.

    Seen in 1 report
  36. Enforce an attempt limit, lockout or delay on incorrect PIN entries.

    Seen in 1 report
  37. Verify that the correct second factor has been supplied before allowing 2FA to be disabled or backup codes to be revealed.

    Seen in 1 report
  38. Do not mark an email as verified without proving the person accepting the invitation owns that mailbox.

    Seen in 1 report
  39. Generate recovery codes with sufficient randomness instead of deriving them from the current time.

    Seen in 1 report
  40. Verify that a secondary email address belongs to the account owner before sending a reset link to it.

    Seen in 1 report
  41. Do not issue a session JWT for the target account from the password reset endpoint; send a temporary password by email instead.

    Seen in 1 report
  42. Verify that the authenticated reset session, the OTP and the target account all belong to the same user.

    Seen in 1 report
  43. Accept only a single email string and generate a separate token per address, checking that the requester owns the account.

    Seen in 1 report
  44. Verify email ownership before allowing signup or email changes, and do not keep previously linked OAuth identities attached without re-verification.

    Seen in 1 report
  45. Validate the magic link's redirect URL parameter against an allowlist.

    Seen in 1 report
  46. Enforce rate limiting or lockout on the endpoint that verifies the password reset nonce.

    Seen in 1 report
  47. Verify that the JWT token belongs to the user whose account is being accessed, and add rate limiting or CAPTCHA.

    Seen in 1 report
  48. Validate the submitted OTP against the one issued on the server before allowing registration to complete.

    Seen in 1 report
  49. Enforce MFA checks on the GraphQL API and do not issue session tokens that bypass MFA verification.

    Seen in 1 report
  50. Use the email bound to the server-side reset token to choose the recipient, not a client-controlled local storage value.

    Seen in 1 report