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 route | How the contact change is made | Control that breaks the chain |
|---|---|---|
| Stolen session cookie or token | Attacker edits the profile using the victim's live session | Full re-authentication before the change (ASVS V7.5.1) |
| CSRF or cross-site scripting | Victim's browser submits the change without their knowledge | Re-authentication plus anti-CSRF tokens; current credential required |
| Unattended or shared device | Person at the keyboard changes the address | Re-authentication; notification and undo link to the old address |
| Phished password without MFA | Attacker logs in and changes address immediately | Confirmation required at the old address as well as the new one |
| Support desk social engineering | Agent changes the address on the caller's request | Agent tooling that triggers the same verification and notification |
| Mass automation | Scripts cycle changes or confirmation codes | Rate 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.
- Confirm the session: the request must come from a valid authenticated session; otherwise show the sign-in page.
- Explain the process: tell the user that both addresses will receive a message and that the change is pending until confirmed.
- 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.
- 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.
- Store a pending change: keep the new address in a pending state. The live address stays in force for sign-in, recovery and notifications.
- 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.
- Send two messages: a confirmation request to the new address and a notification to the current address with a "this was not me" link.
- 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).
- 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
| Property | Requirement | Source |
|---|---|---|
| Generation | Cryptographically secure random generator, long enough to resist guessing | OWASP Forgot Password Cheat Sheet; ASVS V6.5.3 |
| Binding | Linked to one user and one pending change in the database | OWASP Forgot Password Cheat Sheet |
| Single use | Invalid after first successful use | ASVS V6.5.1; OWASP Forgot Password Cheat Sheet |
| Lifetime | Defined expiry; short-lived codes. ASVS sets 10 minutes as the maximum for out-of-band authentication requests | ASVS V6.5.5 |
| Storage | Stored like passwords (hashed), never in plain text | OWASP Forgot Password Cheat Sheet |
| Link construction | Base URL hard-coded or checked against trusted domains, never taken from the Host header; HTTPS only | OWASP Forgot Password Cheat Sheet |
| Leakage | Landing page sets Referrer-Policy: no-referrer | OWASP Forgot Password Cheat Sheet |
| Brute force | Rate limit code entry; prefer long tokens in links over short typed codes | ASVS 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).
| Control | Suggested setting | Trade-off |
|---|---|---|
| Re-authentication method | Strongest bound factor: passkey or MFA; current password only where no MFA exists | More friction for users without MFA, which is an incentive to enrol |
| Recent authentication window | Require authentication within the last few minutes, not just a live session | Users may be prompted twice in one visit |
| Cooling-off for recovery | New 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 changes | No MFA removal, password change via email, or payout detail change during the cooling-off period | Support must handle urgent genuine cases |
| Rate limits | Caps on change requests per account per day, confirmation sends per address, and code attempts per token | Must avoid letting attackers lock out the real user (ASVS V6.1.1) |
| Risk signals | New device, new country, recent password reset or recent failed sign-ins raise the step-up level or route to manual review | Needs 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.
| Signal | Why it matters | Response |
|---|---|---|
| Contact change within minutes of sign-in from a new device or country | Typical of session theft or phished credentials | Raise step-up level or hold for review |
| Contact change followed quickly by password reset or MFA removal | Classic lock-out sequence | Block the follow-on action during cooling-off |
| Many accounts changed to addresses on the same new domain | Automated or organised takeover | Block the domain for changes; review all affected accounts |
| Undo link used | Owner reports a change they did not make | Treat as a confirmed takeover: revoke sessions and tokens, investigate |
| Repeated failed confirmation or code attempts | Brute force against tokens | Invalidate the pending change; alert the owner |
| Spike in support-initiated contact changes | Social engineering campaign against agents | Pause 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
| Framework | Reference | Relevance |
|---|---|---|
| OWASP ASVS 5.0 | V7.5.1 | Full re-authentication before changing email, phone, MFA or recovery data |
| OWASP ASVS 5.0 | V6.3.7 | Notify users after changes to authentication details including email address |
| OWASP ASVS 5.0 | V6.5.1, V6.5.5, V6.6.3 | Single use, defined lifetime and rate limiting for codes and tokens |
| OWASP ASVS 5.0 | V7.2.4, V7.4.3 | New session token after re-authentication; option to end other sessions after factor changes |
| NIST SP 800-63B-4 | Sec. 4.1.2.1, 4.2, 4.6 | Binding authenticators, account recovery and account notifications |
| NIST SP 800-53 Rev. 5 | IA-5, IA-11, AC-12, AU-6 | Authenticator management, re-authentication, session termination, audit review |
| NIST CSF 2.0 | PR.AA-01, PR.AA-03, DE.CM-03 | Credential management, authentication and activity monitoring |
| MITRE ATT&CK | T1098, T1078, T1531 | Account 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
- OWASP: Application Security Verification Standard 5.0
- NIST: SP 800-63B-4 Digital Identity Guidelines, Authentication and Authenticator Management
- NIST: SP 800-63B-4 online edition
- OWASP: Authentication Cheat Sheet
- OWASP: Forgot Password Cheat Sheet
- NIST: SP 800-53 Rev. 5
- MITRE ATT&CK: Account Manipulation
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