Join our Newsletter — 33% off our NHI Course
Home› Guides› Email Change and Verification Flows: Stopping Account Takeover…
Guide Customer Identity

Email Change and Verification Flows: Stopping Account Takeover via Contact Detail Changes

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 27 November 2026 15 min read
On this page

An attacker who can change the email address or phone number on an account owns every future password reset, recovery code and security alert for that account. Contact detail changes are often built as a simple profile edit, protected only by a live session, which turns one stolen cookie or one persuasive support call into a permanent takeover. This guide sets out a reference flow for changing an email address or phone number: re-authentication, verification of the new address, notification of the old one, an undo link, token rules, rate limits and cooling-off periods. It is written for CIAM product owners and application security engineers, and maps each control to OWASP ASVS 5.0 and NIST SP 800-63B-4. For the wider recovery process see the Account Recovery and Help Desk Security Guide.

Key takeaways

  • Treat contact details as authenticators. Email addresses and phone numbers drive recovery, so changing them deserves the same protection as changing a password or MFA factor.
  • Re-authenticate, verify new, notify old. Require fresh authentication, prove control of the new address before it takes effect, and send a notification with an undo link to the old address.
  • Tokens are short-lived, single use and bound. Every confirmation or undo link is random, stored hashed, tied to one user and one pending change, and dies on first use or expiry.
  • Slow down what attackers rush. Rate limits, a cooling-off period before recovery uses a new address, and a hold on further sensitive changes give the real owner time to react.
  • Support staff are part of the flow. A help desk that can edit an email address on request bypasses every control in the self-service path, so it needs the same rules and its own logging.

Why contact detail changes are a takeover path

Most consumer and business applications use an email address, and sometimes a phone number, as the place where password reset links, issued recovery codes and security notices are sent. Whoever controls that address controls recovery. An attacker who briefly holds a session, for example through a stolen session cookie, an unlocked device or a cross-site request forgery (CSRF) flaw, can swap the address, trigger a reset, and lock the owner out. Once the address has changed, the legitimate owner stops receiving the alerts that would warn them.

In MITRE ATT&CK terms this is Account Manipulation (T1098) used to keep access to Valid Accounts (T1078), often followed by Account Access Removal (T1531) when the owner is locked out. The Account Takeover Prevention Guide covers the initial access methods; this page covers the moment after initial access, when the attacker tries to make it permanent.

Entry routeHow the contact change is madeControl that breaks the chain
Stolen session cookie or tokenAttacker edits the profile using the victim's live sessionFull re-authentication before the change (ASVS V7.5.1)
CSRF or cross-site scriptingVictim's browser submits the change without their knowledgeRe-authentication plus anti-CSRF tokens; current credential required
Unattended or shared devicePerson at the keyboard changes the addressRe-authentication; notification and undo link to the old address
Phished password without MFAAttacker logs in and changes address immediatelyConfirmation required at the old address as well as the new one
Support desk social engineeringAgent changes the address on the caller's requestAgent tooling that triggers the same verification and notification
Mass automationScripts cycle changes or confirmation codesRate limits per account, per address and per source

Secure email change flow design

The OWASP Authentication Cheat Sheet gives two reference flows for changing a registered email address, one for users with MFA and one for password-only users. The flow below follows that model and adds the session and cooling-off controls from ASVS 5.0.

  1. Confirm the session: the request must come from a valid authenticated session; otherwise show the sign-in page.
  2. Explain the process: tell the user that both addresses will receive a message and that the change is pending until confirmed.
  3. Validate the new address: apply the same format, domain and uniqueness rules used at registration. Do not reveal whether another account already uses the address; reply with the same message either way and handle conflicts by email.
  4. Re-authenticate: ask for an MFA factor where the user has one, or the current password where they do not. ASVS V7.5.1 (Level 2) requires full re-authentication before changes to email address, phone number, MFA configuration or other recovery information.
  5. Store a pending change: keep the new address in a pending state. The live address stays in force for sign-in, recovery and notifications.
  6. Issue tokens: create a confirmation token for the new address and an undo token for the old address. For password-only accounts, OWASP's flow also requires a confirmation from the current address.
  7. Send two messages: a confirmation request to the new address and a notification to the current address with a "this was not me" link.
  8. Apply on confirmation: when the new address is confirmed (and the old one, where required), switch the address, write an audit event, rotate the session (ASVS V7.2.4) and offer to sign out other sessions (ASVS V7.4.3).
  9. Keep the undo window open: the undo link stays valid for a defined period after the switch and reverses the change, terminates sessions and starts recovery checks.

Token rules

PropertyRequirementSource
GenerationCryptographically secure random generator, long enough to resist guessingOWASP Forgot Password Cheat Sheet; ASVS V6.5.3
BindingLinked to one user and one pending change in the databaseOWASP Forgot Password Cheat Sheet
Single useInvalid after first successful useASVS V6.5.1; OWASP Forgot Password Cheat Sheet
LifetimeDefined expiry; short-lived codes. ASVS sets 10 minutes as the maximum for out-of-band authentication requestsASVS V6.5.5
StorageStored like passwords (hashed), never in plain textOWASP Forgot Password Cheat Sheet
Link constructionBase URL hard-coded or checked against trusted domains, never taken from the Host header; HTTPS onlyOWASP Forgot Password Cheat Sheet
LeakageLanding page sets Referrer-Policy: no-referrerOWASP Forgot Password Cheat Sheet
Brute forceRate limit code entry; prefer long tokens in links over short typed codesASVS V6.6.3

NIST SP 800-63B-4 treats confirmation codes used to validate an email address as distinct from authentication, so email confirmation is acceptable for proving control of an address even though email must not be used as an out-of-band authenticator. For issued recovery codes, SP 800-63B-4 Sec. 4.2 sets validity periods by channel, from 10 minutes for text or voice up to 24 hours for email. A confirmation link for the new address does not need a full day; 30 to 60 minutes is a common product choice and keeps the window small. The undo link is the exception: it should live for days, because its job is to reach a user who may not read email at once.

Phone numbers

The same flow applies to phone numbers, with one addition. SP 800-63B-4 Sec. 3.1.3.3 treats changing a pre-registered phone number used for out-of-band authentication as binding a new authenticator, and Sec. 4.1.2.1 requires that binding to authenticate the user at the account's current assurance level and to notify the subscriber by a channel independent of the transaction. ASVS V6.6.1 allows SMS or voice OTP only where the number was previously validated.

Verification and notification to the old address

The notification to the old address is the control that catches everything the other controls miss. ASVS V6.3.7 (Level 3) requires users to be notified after updates to authentication details, including changes to the username or email address. SP 800-63B-4 Sec. 4.6 requires notifications to go to the notification addresses stored on the account, requires support for at least two notification addresses, and requires each notice to give clear instructions, including contact details, for reporting an event the subscriber did not initiate.

  • Send to the old address, not the new one: the attacker controls the new address. A notice that only goes there warns nobody.
  • Use every channel on file: if the account also has a verified phone number or app push, send a short alert there too.
  • Make the message plain: what changed, when, from which device and approximate location, and a single "this was not me" link. Do not include the new address in full; a masked form is enough.
  • Make undo powerful: the undo link restores the old address, signs out all sessions, revokes refresh tokens and app passwords, and routes the user to recovery checks. It must not require signing in, because the attacker may already have changed the password.
  • Password-only accounts: require confirmation from the old address before the change takes effect, as OWASP recommends, rather than only notifying it.

For how email links themselves can be abused, see the Magic Links and Email OTP Security Guide.

Step-up authentication and cooling-off

Re-authentication proves the user is present now; a cooling-off period limits the damage if they are not who they claim to be. The OWASP Authentication Cheat Sheet lists account recovery, password resets and critical changes as triggers for re-authentication, and says security questions must not be used for it (ASVS V6.4.2 forbids them).

ControlSuggested settingTrade-off
Re-authentication methodStrongest bound factor: passkey or MFA; current password only where no MFA existsMore friction for users without MFA, which is an incentive to enrol
Recent authentication windowRequire authentication within the last few minutes, not just a live sessionUsers may be prompted twice in one visit
Cooling-off for recoveryNew address cannot receive password reset or recovery codes for a defined period (for example 24 to 72 hours)A genuine user who lost the old address waits longer
Hold on further sensitive changesNo MFA removal, password change via email, or payout detail change during the cooling-off periodSupport must handle urgent genuine cases
Rate limitsCaps on change requests per account per day, confirmation sends per address, and code attempts per tokenMust avoid letting attackers lock out the real user (ASVS V6.1.1)
Risk signalsNew device, new country, recent password reset or recent failed sign-ins raise the step-up level or route to manual reviewNeeds tuning to avoid false positives

Small versus large services: a small application can meet the core by requiring the current password or MFA, confirming the new address, notifying the old one and rate limiting. A large consumer platform with payments or stored value should add a cooling-off period, risk scoring and a manual review queue. SP 800-63B-4 Sec. 4.6 recommends allowing notification address updates only for users authenticated at AAL2 or higher where available. See the OAuth Step-Up Authentication Challenge Guide for signalling step-up between an API and an authorisation server.

Support desk and recovery interplay

The self-service flow is only as strong as the support route around it. If an agent can type a new email address into an admin console because a caller sounds convincing, the attacker skips re-authentication, confirmation and notification. The OWASP Authentication Cheat Sheet recommends regular social engineering training for administrators and help desk staff, and ASVS V6.4.6 states that administrators may start a password reset but must not choose the user's password; the same principle applies to contact details.

  • No direct edits: agent tools should start the same pending change, with confirmation to the new address and notification to the old one, rather than overwriting the field.
  • Verification before action: require the caller to pass a defined check, such as approving a push in the app or using a recovery code, before any contact change. Knowledge questions and data an attacker can find (date of birth, postcode, last order) are not enough.
  • Recovery when the old address is gone: genuine users do lose access to old addresses. Route these cases to recovery that meets SP 800-63B-4 Sec. 4.2: at AAL2, two recovery codes from different methods, one code plus a bound authenticator, or repeated identity proofing, and always a notification.
  • Four eyes for high value: for accounts with payments, admin roles or stored value, a second agent approves contact changes made through support.
  • Log the agent: every agent-initiated change records the agent ID, ticket number and verification method used.

Social engineering by impersonating a legitimate user is a proven route in, as the Marks and Spencer cyberattack, which began with impersonation of a third-party user, shows. See the Customer Account Takeover Support Script Template for a ready script.

Detection signals

Every pending, confirmed, undone and expired change should produce a structured audit event with the user ID, old and new address (hashed or masked), session ID, device, source IP, authentication method used for step-up, and whether a person or agent started it. Feed these to the fraud or security monitoring platform; ASVS V6.3.5 also asks that users be told of suspicious authentication attempts.

SignalWhy it mattersResponse
Contact change within minutes of sign-in from a new device or countryTypical of session theft or phished credentialsRaise step-up level or hold for review
Contact change followed quickly by password reset or MFA removalClassic lock-out sequenceBlock the follow-on action during cooling-off
Many accounts changed to addresses on the same new domainAutomated or organised takeoverBlock the domain for changes; review all affected accounts
Undo link usedOwner reports a change they did not makeTreat as a confirmed takeover: revoke sessions and tokens, investigate
Repeated failed confirmation or code attemptsBrute force against tokensInvalidate the pending change; alert the owner
Spike in support-initiated contact changesSocial engineering campaign against agentsPause agent changes; review recent tickets

Metrics

  • Undo rate: undo clicks per thousand confirmed changes; a rise points to an active campaign.
  • Re-authentication coverage: percentage of contact changes preceded by fresh MFA or passkey authentication.
  • Support share: percentage of contact changes made by agents, and the proportion with a recorded verification method.
  • Time to owner action: median time between notice and undo for confirmed malicious changes.

For the response once a takeover is confirmed, follow the Account Takeover Response Playbook.

Framework mapping

FrameworkReferenceRelevance
OWASP ASVS 5.0V7.5.1Full re-authentication before changing email, phone, MFA or recovery data
OWASP ASVS 5.0V6.3.7Notify users after changes to authentication details including email address
OWASP ASVS 5.0V6.5.1, V6.5.5, V6.6.3Single use, defined lifetime and rate limiting for codes and tokens
OWASP ASVS 5.0V7.2.4, V7.4.3New session token after re-authentication; option to end other sessions after factor changes
NIST SP 800-63B-4Sec. 4.1.2.1, 4.2, 4.6Binding authenticators, account recovery and account notifications
NIST SP 800-53 Rev. 5IA-5, IA-11, AC-12, AU-6Authenticator management, re-authentication, session termination, audit review
NIST CSF 2.0PR.AA-01, PR.AA-03, DE.CM-03Credential management, authentication and activity monitoring
MITRE ATT&CKT1098, T1078, T1531Account manipulation, valid accounts, account access removal

Common failure patterns

  • Profile edit with no step-up: email treated as an ordinary profile field, so a stolen session is enough to change it.
  • Immediate switch: the new address becomes live before it is confirmed, letting an attacker use a typo or an address they do not control to cut off the owner.
  • Notice goes only to the new address: the owner never learns of the change.
  • Undo link needs a login: the attacker has already changed the password, so the owner cannot use it.
  • Reusable or long-lived tokens: confirmation links that never expire, or that work again after use, are found later in mailbox compromises.
  • Agent console bypass: support staff can overwrite contact details directly with no confirmation or notice.

Practitioner checklist

  • Classify email address, phone number and recovery contacts as authentication data in your threat model.
  • Require fresh MFA or passkey authentication, or the current password where no MFA exists, before any contact change.
  • Hold new addresses as pending until confirmed; never switch on request.
  • Send a notification with a no-login undo link to the old address and every other verified channel.
  • Make all tokens random, hashed at rest, bound to one change, single use and short-lived; build links from a fixed base URL.
  • Apply rate limits per account, per address and per token, designed so they cannot be used to lock out the owner.
  • Add a cooling-off period before a new address can receive recovery messages, and hold other sensitive changes during it.
  • Route support-desk changes through the same pending flow, with verification recorded and four-eyes approval for high-value accounts.
  • Log every stage of the change and alert on the detection signals above.
  • Test the flow for CSRF, Host header injection, token reuse and user enumeration before each release.

Standards and references

Related NHI Mgmt Group resources: Account Recovery and Help Desk Security Guide · Customer IAM (CIAM) Guide · Account Takeover Prevention Guide · Token and Session Security Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.