An email-address change looks like a profile edit, but it can move control of password recovery and account notifications. A secure assessment must answer more than whether a confirmation message arrived. It must establish which address can recover the account before, during, and after the change; whether an unverified pending address gains authority; and whether an older link can commit state after a later request, cancellation, or completed change.

The useful test artifact is a state-transition record. It names the account version, current and pending addresses, recent-authentication condition, issued action identifiers, expected authority at each step, observed result, and cleanup. That record lets engineers distinguish a notification failure from an authorization flaw.

Model the Change as an Identity Transaction

OWASP describes an email-address change as an identity change and recommends reauthentication, notification to the existing address, and confirmation of the new address. It suggests considering confirmation from both addresses for high-risk systems. Its Authentication guidance is more specific: with MFA, the old address can receive a warning while the new address confirms; without MFA, its recommended process confirms through both addresses. These are risk-based patterns, not one universal protocol for every product.

Start the assessment by writing the product’s intended state machine:

  • current: the verified address currently bound to the account;
  • pending: a proposed address that has not yet satisfied the required proof;
  • committed: the address accepted as the account’s active identity attribute;
  • cancelled or superseded: a proposal that must no longer be able to commit;
  • recovery authority: the address or other authenticator allowed to initiate and complete account recovery in each state.

An authenticated browser session proves possession of a session, not necessarily recent control of the account’s authenticator. OWASP recommends current credentials or another bound authenticator for sensitive changes. Firebase provides one vendor example: setting a primary email requires a recent sign-in. The application under review must define its own reauthentication age, method, and failure behavior.

Separate Notification, Address Proof, and Authorization

Three messages can look similar while serving different purposes:

  1. A notification tells the old address that a request occurred. Reading it may not approve anything.
  2. Address proof shows that someone controls the proposed mailbox.
  3. Authorization to change identity shows that the actor may alter this account’s security state.

Successful validation of the link delivered to the new mailbox proves control of that mailbox. It does not replace authorization to change the address: the proof must be bound to a recently authorized transaction. A valid login session may supply some authorization, but a long-lived or stolen session should not automatically satisfy a recent-reauthentication requirement. Likewise, an email delivered to the old address is not evidence that a cancellation link was valid, used, or enforced.

Pentest.red can help map those proofs in an agreed web-assessment scope: which endpoint creates the pending record, which event authorizes it, which token commits it, and which address receives recovery messages after each transition. The result is a concrete authorization map, not a generic statement that “email verification works.”

Evidence chain for an email-address change
  1. AuthorizeBind a recent authenticator or approved MFA event to the account and requested address
  2. PendStore the proposed address without granting login or recovery authority
  3. ProveValidate the required old/new mailbox actions against the same transaction version
  4. CommitAtomically replace the active address and supersede older pending transactions
  5. RetestCheck recovery, SSO mapping, sessions, notifications, cancellation, and stale links separately

Keep Recovery on a Deliberate Authority Path

The central buyer question is what happens to recovery authority. Before commit, the verified old address normally remains the known recovery address; the pending new address should not silently become a password-reset destination merely because a change was requested. After commit, product policy must say whether the old address loses recovery authority immediately, after a defined safety period, or through a separate recovery rule. A bounded old-inbox cancellation or vendor reversal action may be deliberate; test its stated purpose separately from password-reset authority, and do not let it silently restore a superseded contact after suspected compromise.

Do not infer the answer from the profile page. Test the recovery request and completion paths with synthetic accounts and mailboxes. Compare the visible response for existing and non-existing identities, because OWASP recommends consistent responses and timing to limit enumeration. Confirm that a reset request does not mutate or lock the account before a valid single-use, time-limited token is presented.

Password reset, SSO login, account linking, and active sessions are separate controls. Changing the local email must not unexpectedly rewrite an immutable SSO subject, merge another account, or let an old address recover a federated identity unless that behavior is explicitly designed. For recovery after suspected compromise, OWASP separately advises against automatically restoring superseded addresses and calls for previously established independent evidence. The related guide to logout and session revocation testing explains session invalidation; this assessment records email-change effects on sessions without assuming that every change must log out every device.

Make Every Link Belong to One Transaction Version

Delayed links create the hardest defects. Consider request A from the old address to new-one, followed by request B to new-two. If A arrives after B, what should it do? The safe acceptance rule is product-specific, but it must be explicit: a superseded, cancelled, expired, or already consumed action cannot commit an obsolete address.

Test at least these sequences on owned synthetic accounts:

  • issue A, then B, then open A before B;
  • issue A, cancel it, then open A;
  • issue A, complete it, then reuse every A link;
  • test an action before and after its agreed expiry using the server time;
  • issue A, start password recovery, then complete A and attempt the older recovery action;
  • request the same new address from two sessions and reverse the delivery order;
  • change away from an address, then verify whether that old address can still start or finish recovery.

The implementation can bind actions to an account-state version, transaction identifier, purpose, target address, expiry, and single-use status. That is an engineering option, not a claim that OWASP mandates a particular database schema. For each stale, expired, cancelled, or superseded negative case, first prove an equivalent current action works, then inspect the final server-side account state rather than trusting a redirect or message. The outcome is that only the current authorized transaction can change the account.

Use an Evidence Matrix, Not an Inbox Screenshot

Scroll sideways to compare

Test stateExpected authorityPositive controlNegative or stale actionEvidence to retain
Before changeCurrent address and existing recovery policyExisting address can request the agreed recovery flowUnverified proposed address cannot recoverAccount ID, address state, recovery event, redacted delivery record
Pending changeCurrent policy remains until required proofs finishRequired old/new action advances the same transactionUnverified pending address gains no login or password-reset authorityTransaction ID, state version, purpose, expiry, observed transition
Second requestLatest authorized transaction has defined precedenceNewest action completes as designedFirst request cannot overwrite later intentA/B identifiers, issue order, completion order, final state
CancellationAccount remains on the committed addressCancellation produces the documented stateCancelled confirmation link cannot commitCancellation event and rejected stale action
After commitNew address follows the declared login/recovery policyNew address receives the intended recovery flowOld address cannot retain unintended reset authorityFinal account state, recovery destination, old-link results
Password reset or SSOSeparate policy is applied deliberatelyValid reset or federated subject still works as designedEmail change cannot silently relink another identitySubject/account mapping, session decision, separate event trail

Messages and logs must redact action tokens and full action URLs. OWASP specifically recommends not logging verification, reset, or authentication tokens. Retain transaction identifiers, timestamps, purpose, delivery status, and redacted address metadata instead. A report screenshot showing “email sent” proves delivery handling, not who could commit the change.

Check the Actual Provider Mode

Hosted identity platforms do not all implement the same protocol. Supabase documents that its Secure Email Change setting produces one action for the current address and another for the new address; with that setting disabled, only the new-address action is generated. Firebase documents recent-sign-in requirements for changing a primary email. These examples show why an assessor must record provider, SDK flow, tenant settings, application code, and custom email hooks.

Do not turn a vendor feature name into a security conclusion. A custom hook can misroute the old and new actions, application code can grant recovery too early, and a tenant setting can differ between staging and production. If the product wraps an identity provider, test the application’s observable state and server-side authorization as well as the provider configuration.

The article on release mixed-state security is relevant when a deployment changes this flow: old and new application versions may interpret pending records or links differently. Include the running build and identity configuration in every result.

Walk Through a Synthetic Delayed-Link Scenario

Consider a fictional account T-204 with MFA and a verified old mailbox controlled by the test team. Before either change, the team issues recovery action R-old to the current mailbox and keeps it in restricted test storage; the report contains only its safe label. After recent MFA, the tester requests address A. The old mailbox receives a warning and A receives a confirmation. Before using it, the tester requests address B. The application now shows B as pending.

The positive control completes B and confirms that the account’s active address and recovery destination become B. The negative control then opens A’s older confirmation. The expected result is rejection with no state change. The tester also reuses B’s consumed link, tries the previously issued recovery action R-old, and checks that the old mailbox receives no password-reset authority after commit unless the written policy explicitly retains a bounded recovery path.

If A can overwrite B, the finding is not “an email arrived late.” The impact is stale authorization committing a superseded identity state. If A is rejected but recovery still goes to the old address, that is a separate recovery-authority result. This distinction gives engineers the exact state transition to fix.

Commission the Assessment Around Decisions and Retest

Use the pentest scope planner to name the application, identity provider, test tenant, synthetic accounts and mailboxes, MFA states, SSO links, reset flow, session expectations, allowed timing tests, and prohibited real-user interaction. No production email flood or third-party mailbox access is needed.

In an authorized web application penetration test, Pentest.red can exercise the agreed state transitions manually, correlate browser behavior with server-side account state, and give engineers reproducible sequences and remediation priority. The application owner defines the intended recovery policy and deploys the fix; the retest repeats the same A/B, cancellation, reuse, recovery, and SSO cases against the recorded build.

The closure statement should be narrow and testable: the pending address had no premature recovery authority, only the current authorized transaction could commit, superseded and cancelled actions were rejected, and old/new recovery behavior matched the documented policy. It should separately state what was not tested, including real user mailboxes, provider internals, or sessions outside the agreed environment.

PENTEST.RED

Discuss pentest scope and pricing

We start by agreeing on systems, access, constraints and the expected evidence.

Prepare your testing scope

Based on in-depth research, edited for clarity and practical use.

PENTEST.RED / RED JOURNAL