In-depth lesson · Account takeover
Root causes
Every point the Account takeover reports back under this heading, best-backed first, each with the reports it is seen in.
-
Existing server-side sessions were not invalidated or rotated when the password changed.
Seen in 14 reports
-
The reset URL was built from the client-supplied Host header, including its port, instead of a fixed canonical server name, and was not validated or escaped against an allowlist.
Seen in 11 reports
-
The server did not delete or revoke the session token on logout, only clearing it on the client.
Seen in 11 reports
-
The server decided OTP success from a client-side response field rather than checking the code itself.
Seen in 8 reports
-
A security decision was made from a client-side response flag rather than server-side OTP validation.
Seen in 7 reports
-
The password reset token was not invalidated when the account's email address was changed.
Seen in 7 reports
-
An OAuth identity was linked to an existing account by matching email without verifying ownership.
Seen in 6 reports
-
Previously issued reset tokens were not invalidated when a new one was generated or when one was used.
Seen in 6 reports
-
The 2FA check compared two values the attacker controlled.
Seen in 6 reports
-
The reset endpoint returned the generated token in its JSON response instead of only emailing it to the account owner.
Seen in 6 reports
-
Reset links were built from the client-controlled Host or X-Forwarded-Host header instead of a fixed configured domain.
Seen in 5 reports
-
Reset tokens were not revoked or expired when the account email address changed.
Seen in 5 reports
-
Sensitive request data was logged in plaintext in a publicly accessible file.
Seen in 5 reports
-
The application did not invalidate existing sessions when the password was changed.
Seen in 5 reports
-
The client trusted the server response body to decide whether the OTP was valid instead of the server enforcing the result.
Seen in 5 reports
-
The client-side flow trusted the JSON response body to mark the email or OTP as verified instead of the server confirming it.
Seen in 5 reports
-
The reset link was built from the request Host header without an allowlist.
Seen in 5 reports
-
The server included the password reset token or URL in the API response body instead of delivering it only by email.
Seen in 5 reports
-
Email ownership was not verified at password signup and OAuth logins were auto-linked to existing accounts by matching email alone.
Seen in 4 reports
-
Inconsistent Unicode normalisation between the database lookup and the mail delivery path made lookalike addresses match the victim's account.
Seen in 4 reports
-
The domain had no valid SPF TXT record, or no DMARC record, so receivers had no policy to reject spoofed mail.
Seen in 4 reports
-
The email change endpoint did not require the current password or confirmation from the original address.
Seen in 4 reports
-
The frontend decided whether OTP verification succeeded from the response body instead of the server enforcing the verified state.
Seen in 4 reports
-
The OTP validation endpoint had no rate limiting or attempt limit on a short numeric code.
Seen in 4 reports
-
The password change and reset flows did not invalidate existing sessions.
Seen in 4 reports
-
The password change did not require the current password.
Seen in 4 reports
-
The reset endpoint accepted a list of email addresses and sent the token to every address in the list.
Seen in 4 reports
-
The reset link was built from an untrusted host header without validation against an allowlist.
Seen in 4 reports
-
The reset URL was built from the untrusted Host or X-Forwarded-Host header without an allowlist check.
Seen in 4 reports
-
The reuse matcher left security-relevant settings out of the comparison key, so a lower-security transfer could reuse a higher-security connection.
Seen in 4 reports
-
The verify route was mounted without authentication and treated mailbox-control token possession as proof of channel ownership, with uniqueness checked only at request time.
Seen in 4 reports
-
Unicode or Punycode email addresses were normalised to ASCII after uniqueness checks, so lookalikes mapped to the same account.
Seen in 4 reports
-
Email addresses were normalised for database lookup but the raw address was used for delivery, so codes went to a lookalike domain.
Seen in 3 reports
-
Email validation allowed characters that were stripped when generating the recovery code, so the unsanitised email compared against the stored one allowed a mismatch.
Seen in 3 reports
-
Password validation checked only length and did not enforce the required character classes.
Seen in 3 reports
-
Reset and account-creation tokens never expired and were not revoked after use.
Seen in 3 reports
-
Sessions were not tied to the current password or revoked on password reset, and the default lifetime was very long.
Seen in 3 reports
-
The 2FA endpoint had no rate limiting or attempt lockout.
Seen in 3 reports
-
The application does not invalidate existing sessions when 2FA is enabled, so previously authenticated sessions remain valid.
Seen in 3 reports
-
The application reused the pre-authentication session identifier after a successful login instead of issuing a new one.
Seen in 3 reports
-
The authentication service lacked rate limiting or account lockout on failed attempts.
Seen in 3 reports
-
The client-side flow trusted a response field to decide OTP success instead of the server enforcing the check.
Seen in 3 reports
-
The content security policy allowed a script source reachable through URL encoding, so injected HTML could run script.
Seen in 3 reports
-
The stay-logged-in cookie held an unsalted hash of the password with no server-side secret or signature, and was built from the username and that hash rather than an opaque random server-side token.
Seen in 3 reports
-
The email-change flow did not require re-verification, so the verified state carried over.
Seen in 3 reports
-
The generated OTP was included in the JSON response body instead of only being delivered out of band.
Seen in 3 reports
-
The login endpoint had no rate limiting, account lockout or captcha after repeated failed attempts.
Seen in 3 reports
-
The reset endpoint did not enforce that the email parameter was a single string, so it accepted an array and used every address as a recipient.
Seen in 3 reports
-
The reset endpoint trusted a client-supplied user identifier rather than validating the secret token.
Seen in 3 reports
-
The reset endpoint trusted a user-supplied email parameter instead of binding the token to one account.
Seen in 3 reports