Email Change Validation Issue: Old Email Remains Usable After an Email Update
After changing an account's email address, the application still accepted the previous email address for sign-in alongside the new one. The author did not establish whether both addresses resolve to the same account or whether this enables account takeover.
Published on medium.com
Bugbounty Writeup
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Context
The target is an application's email change functionality, the account settings feature that lets a signed-in user replace the address associated with their account. Normally, changing an account's email address should move the account's identity from the old address to the new one: the new address is verified, becomes the canonical email, and the old address stops being accepted as a login identifier.
While testing this feature, I observed a potential authentication and account-management issue: after the account's email address was changed, the previous email address remained usable for sign-in. Authentication using both the previous and the new email address appeared to succeed.
That raises questions about how the application validates email changes, retires previous email addresses, and associates login identities with accounts.
Setup
The testing required only an account I owned or was authorised to test, and access to its account settings page. No special tools, roles or versions are described in the report. The precondition is simply that the account has an existing email address that can be changed to a new one.
Finding it
During testing of the email change functionality, I changed the account's email address and then tried to sign in with the previous address. The sign-in appeared to succeed. Trying the new address also appeared to succeed.
This looked wrong because an email change is normally expected to retire the old identifier. If both addresses authenticate, the application may not be invalidating the previous login identifier as expected, or it may be maintaining multiple valid sign-in identifiers for the same account.
Exploitation
Step 1: Sign in to the account
Sign in to an account you own or are authorised to test.
Step 2: Open the account settings page
Navigate to the account settings page.
Step 3: Change the email address
Change the account's email address from the existing address to a new address.
Step 4: Sign in with the previous email address
Attempt to sign in using the previous email address.
Step 5: Sign in with the new email address
Attempt to sign in using the new email address.
Step 6: Compare the results
Record the results of both authentication attempts and verify whether they resolve to the same account.
Observed behaviour
After the email change, sign-in using both the old and the new email addresses appeared to succeed. This suggests that the email change process may not be invalidating the previous login identifier as expected, or that the application may be maintaining multiple valid sign-in identifiers.
Further testing is needed to determine whether both addresses authenticate to the same account, whether the old address remains an alias, and whether email verification is required before the new address becomes active.
Root cause
The report does not identify a specific code path. It says further testing is needed to determine whether both addresses authenticate to the same account, whether the old address remains an alias, and whether email verification is required before the new address becomes active.
Impact
If the previous email address remains a valid login identifier after an email change, users and account owners may be confused about which address controls access to the account. The security impact depends on the underlying authentication behaviour: it is necessary to establish whether the old and new addresses authenticate to the same account, and whether an unauthorised person can exploit this behaviour. Account takeover has not been established by the current reproduction steps alone.
Fix
The report does not describe a fix that was applied. It recommends reviewing the email change and authentication flows to confirm that:
- Email ownership verification is enforced as required by the application's security policy.
- The account's canonical email and accepted login identifiers are updated consistently.
- Retired email addresses cannot continue authenticating unexpectedly.
- Existing sessions and recovery mechanisms follow the intended security policy after an email change.
- Regression tests cover sign-in, password recovery, email verification, and account identity association after email changes.
What happened, in plain words
Many websites let you change the email address linked to your account. You sign in, open your account settings, type a new address, and from then on the site is supposed to treat the new address as yours. The old one should stop working as a way to sign in.
In this report, that last part did not happen. After the email address was changed, the researcher found that signing in with the old address still appeared to work, and signing in with the new address also appeared to work. Two different addresses, both apparently accepted for the same account.
That is worth writing down because an email address is usually the thing a site uses to decide who you are when you log in. If an address that is supposed to be retired keeps working, it is not clear which address really controls the account, and it is not clear whether the site is checking that the new address belongs to you before it starts using it.
The researcher is careful about one thing: this does not by itself prove that someone else can take over the account. It shows a confusing behaviour that needs more testing before anyone can say how serious it is.
Background you need first
A few everyday ideas come up throughout this report. Here they are, explained from scratch.
An account and its email address. When you register on a website, you usually give an email address and a password. The site stores the address as part of your account. Later, when you sign in, you type that address and the site looks it up to find your account. In this sense the email address is a login identifier: a label the site uses to find the right account. Think of it like the name on a coat check ticket. The ticket number is what matters, but the name written on it is how the staff find your coat.
Account settings. Almost every site has a page where you can edit your profile: your name, your password, your email address. This report is about the email address field on that page.
Email verification. When you change your email address, many sites send a message to the new address with a link or a code. You click the link or type the code, and only then does the site treat the new address as confirmed. The point is to prove you actually control the new address, rather than typing someone else's by mistake or on purpose. It is like a bank phoning the number you just gave them before they start using it.
Authentication. Authentication is simply the process of proving who you are when you sign in. The site asks for something only you should know (a password) or have (a code on your phone), checks it, and lets you in. When this report says an address "authenticates", it means the site accepted that address as part of a successful sign-in.
Canonical email. A slightly formal term for the one address the site treats as the official, current address for your account. If your account has a canonical email, that is the address the site should use when it sends you security notices, password resets and so on.
Alias. A second name for the same thing. If the old address still works after a change, it may be behaving as an alias: another label that points at the same account.
Account takeover. The worst outcome in this kind of situation: someone who should not have access to your account gets it. The report explicitly says this has not been shown by the steps described, so keep that in mind as you read.
Bug bounty. A programme where companies invite outside researchers to test their systems and report problems, often paying for good reports. This write-up comes from that world.
What the researcher was testing
The target is the email change feature: the part of account settings that lets a signed-in user replace the address on their account.
The normal, expected behaviour is easy to state. When you change your address:
- The new address is verified, meaning you prove you control it.
- It becomes the official (canonical) address for the account.
- The old address stops being accepted when you sign in.
In other words, the account's identity moves from the old address to the new one, and the old one is retired.
What the researcher observed instead: after the change, the old address still appeared to work for signing in, and the new address did too. That is the whole finding, and it opens up questions about how the site checks email changes, how it retires old addresses, and how it links login identities to accounts.
Setting up
There was not much to set up. The testing needed only:
- an account the researcher owned or was allowed to test, and
- access to that account's settings page.
No special tools, no special user role, and no particular software version are mentioned. The only precondition is that the account already has an email address that can be changed to a new one. If you have ever signed up for anything, you have everything you need to follow along.
Finding it
The researcher changed the account's email address, then tried to sign in with the previous address. The sign-in appeared to succeed. Then the researcher tried the new address. That also appeared to succeed.
Why does that look wrong? Because an email change is normally expected to retire the old identifier. If both addresses let you in, one of two things is probably happening:
- the site is not invalidating the previous login identifier when it should, or
- the site is deliberately keeping several valid sign-in identifiers for the same account.
Either way, the behaviour does not match what a user would assume when they change their address.
Reproducing it step by step
The report gives six steps. They are deliberately simple, and each one exists to answer a specific question.
Step 1: Sign in to the account
Sign in to an account you own or are authorised to test.
Why: you need to be inside the account before you can change anything about it. The "own or authorised" part matters in bug bounty work: you should only test accounts that are yours or that you have permission to use.
Step 2: Open the account settings page
Navigate to the account settings page.
Why: this is where the email address field lives. Nothing unusual here, just the normal page any user would visit.
Step 3: Change the email address
Change the account's email address from the existing address to a new address.
Why: this is the action under test. Everything after this step is about what the site does once the change has happened.
Step 4: Sign in with the previous email address
Attempt to sign in using the previous email address.
Why: if the site retires the old address properly, this attempt should fail. If it appears to succeed, the old address may still be accepted.
Step 5: Sign in with the new email address
Attempt to sign in using the new email address.
Why: this checks the other side of the change. The new address should work, but you also want to know whether it works before any verification step, and whether it leads to the same account.
Step 6: Compare the results
Record the results of both authentication attempts and verify whether they resolve to the same account.
Why: this is the part that turns two separate sign-ins into a finding. The report says further testing is needed to determine whether both addresses resolve to the same account. Writing the results down, rather than relying on memory, is what makes the observation repeatable by someone else.
What was observed
After the change, both the old and the new address appeared to sign in successfully. The report reads this as a sign that the email change process may not be invalidating the previous login identifier, or that the application may be keeping multiple valid sign-in identifiers.
The researcher also lists what still needs checking:
- whether both addresses really reach the same account,
- whether the old address is acting as an alias, and
- whether email verification is required before the new address becomes active.
Those are open questions, not conclusions.
Why it happens
The report does not point to a specific piece of code. It says further testing is needed to determine whether both addresses authenticate to the same account, whether the old address remains an alias, and whether email verification is required before the new address becomes active.
- the email change process does not retire the previous login identifier, or
- the application keeps several valid sign-in identifiers for one account.
How serious is it
If the old address stays a valid way to sign in after a change, users and account owners can end up confused about which address controls access to the account. That confusion is a real problem on its own: if you change your address because you lost access to the old one, you would expect the old one to stop working.
The actual security impact depends on how the authentication really behaves. Two things need to be established:
- whether the old and new addresses sign in to the same account, and
- whether someone unauthorised could exploit the behaviour.
The report is explicit that account takeover has not been established by these steps alone. In plain terms: this is a suspicious behaviour that deserves a closer look, not a proven break-in.
How to fix it
No fix is described in the report. What it recommends is a review of the email change and authentication flows, checking five things:
- Email ownership verification is enforced as required by the application's security policy.
- The account's canonical email and accepted login identifiers are updated consistently.
- Retired email addresses cannot continue authenticating unexpectedly.
- Existing sessions and recovery mechanisms follow the intended security policy after an email change.
- Regression tests cover sign-in, password recovery, email verification, and account identity association after email changes.
In everyday terms: make sure the site proves you own the new address, make sure the old address is properly switched off, make sure anything already signed in or able to reset the password behaves as intended, and write automated tests so the behaviour stays correct in future.
The report lists variations worth trying. Each one asks a slightly different question about the same feature.
Conclusion
The behaviour observed suggests that the previous email address may remain usable for signing in after an email change. More validation of account identity and verification behaviour is needed before the precise security impact and severity can be stated.
Glossary
- Account settings: the page on a website where you edit details of your account, such as your name, password or email address.
- Account takeover: a situation where someone who should not have access to an account gains it.
- Alias: a second name or label that points at the same thing, here a second email address that leads to the same account.
- Authentication: the process of proving who you are when you sign in, usually with a password or another credential.
- Bug bounty: a programme in which a company invites outside researchers to test its systems and report security problems, often in exchange for a reward.
- Canonical email: the single email address a site treats as the official, current address for an account.
- Email change functionality: the feature that lets a signed-in user replace the email address associated with their account.
- Email verification: a step where the site sends a message to an email address and you confirm you received it, proving you control that address.
- Login identifier: the piece of information, such as an email address, that a site uses to find your account when you sign in.
- Password recovery: the flow that lets you regain access to an account, typically by receiving a reset link or code by email.
- Regression test: an automated test that checks a feature still behaves correctly after changes to the software, so old bugs do not come back.
- Reproduction steps: the numbered actions someone else can follow to see the same behaviour for themselves.
- Retire (an identifier): to stop accepting an old email address or other identifier as a way to sign in.
- Session: the period during which a site remembers that you are signed in, usually kept alive by a cookie or token stored in your browser.
- Severity: a rating of how serious a security issue is.
- Sign-in: the act of entering your credentials so the site recognises you and lets you into your account.