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.
-
Revoke sessions and linked-identity state when a provider is disconnected.
Seen in 1 report
-
Require fresh authentication for the target account in the switch-account flow.
-
Make authentication decisions server-side and issue a server-side session.
Seen in 1 report
-
Critical
-
-
Use an app-controlled timer rather than the device clock for the lock countdown.
Seen in 1 report
-
Validate the origin and target of deep links and do not pass session cookies to untrusted destinations.
Seen in 1 report
-
Show a clear warning and require confirmation that the user intends to grant access to the client.
Seen in 1 report
-
Bind session identifiers to the original client and limit their lifetime.
Seen in 1 report
-
Require the current password before changing it.
Seen in 1 report
-
Use a random recovery password rather than one derived deterministically from predictable inputs.
Seen in 1 report
-
Include the FTP account and alternative-to-user settings in the connection reuse cache key.
Seen in 1 report
-
Include the GSSAPI delegation level in the connection reuse comparison.
Seen in 1 report
-
Use a bitwise AND against the protocol-family bitmask instead of equality.
Seen in 1 report
-
Generate unpredictable CAPTCHA challenges.
Seen in 1 report
-
Medium
-
-
Make authentication requests single-use so they cannot be replayed.
Seen in 1 report
-
Harden the scanning engine against crafted files that evade detection.
Seen in 1 report
-
Remove dangling DNS records pointing at unclaimed services.
Seen in 1 report
-
Revoke all other active sessions when a password is changed.
Seen in 1 report
-
Apply brute-force protection to the endpoint that validates the reset token, not just the rest of the flow.
Seen in 1 report
-
Use random, unguessable reset tokens instead of time-based UUIDv1 values.
Seen in 1 report
-
Do not use a user-supplied email to identify and authenticate a user; verify credentials before setting an authentication cookie.
Seen in 1 report
-
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
-
Check that the user has completed the second authentication factor before returning recovery codes.
Seen in 1 report
-
High
-
-
Verify that a primary email address belongs to the user before using it to match invitations and grant project access.
Seen in 1 report
-
Properly authenticate the user's session during the Socket.IO connection handshake.
Seen in 1 report
-
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
-
Add rate limiting or account lockout to the login endpoint.
Seen in 1 report
-
Re-check email ownership on profile update requests and do not mark a supplied email as verified without confirmation.
Seen in 1 report
-
Do not trust the client-supplied request path and parameters; verify the 2FA code before performing a password change.
-
Give auto-login tokens a short lifetime, make them single-use, and revoke them on password reset and MFA enrolment.
Seen in 1 report
-
Require a server-generated identity verification token before starting a chat session.
Seen in 1 report
-
Limit or lock out repeated failed OTP submissions.
Seen in 1 report
-
Require the email owner to confirm ownership before linking a Google sign-up to an existing unverified account.
Seen in 1 report
-
Always check the SAML response signature, even when the signature element is absent.
Seen in 1 report
-
Regenerate the session identifier after login.
Seen in 1 report
-
Use a secure, single-use token instead of a predictable static user identifier, and do not allow link reuse.
-
Enforce an attempt limit, lockout or delay on incorrect PIN entries.
Seen in 1 report
-
Verify that the correct second factor has been supplied before allowing 2FA to be disabled or backup codes to be revealed.
-
Do not mark an email as verified without proving the person accepting the invitation owns that mailbox.
-
Generate recovery codes with sufficient randomness instead of deriving them from the current time.
-
Verify that a secondary email address belongs to the account owner before sending a reset link to it.
-
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
-
Verify that the authenticated reset session, the OTP and the target account all belong to the same user.
Seen in 1 report
-
Accept only a single email string and generate a separate token per address, checking that the requester owns the account.
Seen in 1 report
-
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
-
Validate the magic link's redirect URL parameter against an allowlist.
Seen in 1 report
-
Enforce rate limiting or lockout on the endpoint that verifies the password reset nonce.
Seen in 1 report
-
Verify that the JWT token belongs to the user whose account is being accessed, and add rate limiting or CAPTCHA.
Seen in 1 report
-
Validate the submitted OTP against the one issued on the server before allowing registration to complete.
Seen in 1 report
-
Enforce MFA checks on the GraphQL API and do not issue session tokens that bypass MFA verification.
Seen in 1 report
-
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