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.
-
Do not export WebView activities that accept arbitrary URLs, and store sensitive data securely.
-
Generate and verify the OTP only on the server.
Seen in 1 report
-
Check credentials against breach data and enforce password changes for reused passwords.
Seen in 1 report
-
Do not accept arbitrary email addresses in the sign-in API and do not use default passwords.
-
Reject token requests that omit the encrypted unique key instead of skipping validation.
-
Apply the same rate limiting and CAPTCHA to every subdomain that shares the user database.
Seen in 1 report
-
Enforce the second factor server-side for every login and ignore client-supplied flags.
Seen in 1 report
-
Remove the hard-coded fallback JWT secret, enforce server-side role checks, and do not pass live objects into sandboxes.
Seen in 1 report
-
Disable IPv6 router advertisements and WPAD, and enforce LDAP signing and channel binding.
Seen in 1 report
-
Protect every credential change endpoint with the same MFA enforcement.
Seen in 1 report
-
Generate random default credentials and force a password change on first login.
Seen in 1 report
-
Rate limit and cap attempts on the second-factor verification endpoint.
Seen in 1 report
-
Require authentication on user API routes and never expose password hashes; use a long random temporary password.
Seen in 1 report
-
Decide on the server whether a password change is required and do not trust client responses.
Seen in 1 report
-
Verify email ownership for company addresses and check which identity provider issued the login.
Seen in 1 report
-
Invalidate refresh tokens obtained with a Temporary Access Pass when the pass expires.
Seen in 1 report
-
Apply attempt limits on server-side values rather than client-supplied forwarding headers.
Seen in 1 report
-
Use a random verification token and decide OTP success on the server.
-
Block UNC paths in reminder file parameters and prevent Outlook from sending NTLM authentication to arbitrary servers.
-
Require verification before changing the email attribute and do not link unverified emails to accounts.
Seen in 1 report