No Confirmation Email For Email Change
The email change feature sends a confirmation only to the new address and does not ask for the current password. An attacker with access to a logged-in session could change the account email and take over the account.
- Disclosed after 8.1 years
https://forum.blockstack.org/u/username/preferences/email
Hello, it looks like there is a security flaw in this part. While changing email address from email1 to email2. A Confirmation email is sent to email2 not to email1 which is the main account. This can lead to account lost if someone has used a public computer to access his/her account and he/she is logged in.
Also, while changing email address password is not asked to the user.
What the report shows
The target is the email change feature of a forum profile, reached at the preferences page for a user account:
https://forum.blockstack.org/u/username/preferences/email
The researcher reports a flaw in how that page handles an email address change from one address (email1) to another (email2).
- When the change is submitted, the confirmation email goes to the new address (email2) only. No confirmation is sent to the address currently on the account (email1).
- The change is processed without asking the user for their password.
The researcher frames the consequence as account loss: if someone has left a session open on a public computer, another person using that machine can start an email change, and because the only confirmation goes to the new address, the original owner is never asked to approve or reject it. The report does not describe the exact request, the response, or any reproduction beyond this description, and it gives no bounty amount or fix.
Root cause
One reading of the flaw is that the email change flow treats the new address as the only party that needs to prove ownership. The current address is never notified, so the account owner has no out-of-band signal that a change was requested. The second issue is a missing re-authentication step: the change is processed without asking the user for their password. Both are design decisions in the change flow rather than a memory-safety or injection flaw.
Impact
The report's own framing is limited: the risk materialises when an account is left logged in on a shared or public machine. In that situation another person using the machine can start an email change, and the legitimate owner receives nothing to warn them. The report does not claim that the attacker can read the confirmation sent to the new address, nor that they can complete the change without access to that mailbox; it presents the missing notification to email1 and the missing password prompt as the flaws. The researcher describes the possible result as account loss.
How this kind of bug works
Account recovery and identity data (email address, phone number, backup address) are the keys to the account. Whoever controls the address on file can usually trigger a password reset and take over the account. A change flow therefore has two jobs: prove that the person making the request is the account owner right now, and make sure the owner learns about the change through a channel the requester does not control.
Flows fail in a few common ways. They may authenticate the request with the session cookie alone, so anyone holding a live session (shared computer, stolen cookie, XSS, CSRF) can perform the change. They may send the confirmation only to the new address, which proves the requester controls that mailbox but tells the real owner nothing. They may apply the change before confirmation, or leave the old address valid after the new one is set. They may also skip notifying the old address after the change completes, removing the owner's chance to react.
The standard defences are: require the current password (or a fresh MFA challenge) before the change; send a notification, and ideally a confirmation link, to the old address as well as the new one; keep the old address active until the new one is verified; and notify the old address again once the change is complete, with a way to revert.
How to test for it
- Create two mailboxes you control and an account on the target. Note which address is on the account.
- Open the email change feature and submit a change to the second mailbox. Watch both inboxes.
- Record whether a message arrives at the old address, the new address, both, or neither, and whether the change takes effect before any link is clicked.
- Repeat the submission without entering the account password. If the change is accepted, the re-authentication requirement is missing.
- Check the order of operations: does the profile show the new address immediately, or only after the new mailbox confirms? Does the old address remain valid in the meantime?
- Test the same flow from a session you did not create through the normal login, for example a second browser profile, to see whether the session alone is sufficient.
A positive result is a change that is accepted without a password prompt and with no notification to the old address, or a change that becomes effective before the new address is verified. Common false positives: a notification to the old address that is delayed or lands in spam; a password prompt that appears on a later step of a multi-page flow; a change that is only staged and never applied until confirmation; and mail filters that hide the message. Confirm each case by checking the account state directly rather than relying on inbox timing.
How it is fixed
Require the current password or a fresh MFA challenge before accepting an email change. Send a confirmation link to the new address and a separate notification, with a cancellation link, to the old address. Do not apply the change until the new address is verified, and keep the old address able to receive mail until then. After the change completes, notify the old address once more so the owner can revert it. Rate-limit change requests and log them so unusual activity is visible.
Hunting notes
This class of bug hides in account settings: email, phone, backup address, recovery questions, linked identities and password reset preferences. It is common on forums, SaaS dashboards and older community platforms where settings pages grew organically. Recon signals include a preferences or settings endpoint that accepts a new contact value, any flow that mentions verification but sends mail to only one side, and features that let a user change identity data without a password field on the form.
To make the report land, show the full sequence with timestamps: the request, the absence of mail at the old address, the absence of a password prompt, and the resulting account state. Demonstrate the consequence concretely, for example that a password reset now goes to the attacker-controlled mailbox, but only claim what you actually observed. Keep the test on accounts you own and avoid touching other users' data.
What happened, in plain words
This report is about a forum, a website where people post messages and discuss topics. Each person on the forum has an account, and that account is tied to an email address. The email address is important because it is how the site contacts you and, in most systems, how you recover your account if you forget your password.
The researcher looked at the page where a logged-in user can change the email address on their account. The page is reached at this address:
https://forum.blockstack.org/u/username/preferences/email
Here u/username stands for the user's own profile name, and preferences/email is the settings section for the email address. In plain terms, this is the "change my email" screen inside your account settings.
The researcher found a problem in how that screen works when someone changes the address from one email (called email1, the one currently on the account) to another (email2, the new one).
- The confirmation only goes to the new address. When the change is submitted, the site sends a confirmation email to email2. Nothing is sent to email1, the address that is actually on the account. A confirmation email is a message with a link or code that proves you can read that mailbox. Sending it only to the new address proves the person making the request controls email2, but it tells the real owner nothing.
- No password is asked for. The change goes through without the user typing their password again. Asking for the password again is called re-authentication: it is the site checking that the person at the keyboard right now is really the account owner, not just someone who found an open session.
The researcher explains why this matters with a common situation: someone logs into the forum on a public computer, for example in a library or an internet cafe, and walks away without logging out. The next person at that machine is still logged in as them. That person can start an email change, and no password is required. Because the only confirmation goes to the new address, the original owner is never asked to approve or reject it. The researcher describes the possible result as account loss: the real owner could lose access to their account.
The report stops there. It does not show the exact request that was sent, the response from the server, or a step-by-step reproduction. It also gives no bounty amount and no fix.
In general, how this kind of bug works
In general, the email address on an account is one of the keys to that account. Most sites let you reset a forgotten password by sending a link to the address on file. So whoever controls that address can usually take over the account. That is why changing it is a sensitive action, and why the flow around it needs care.
A good email change flow has two jobs:
- Prove the requester is the owner right now. The usual way is to ask for the current password, or a fresh code from a second factor (an app or device that confirms it is really you).
- Make sure the real owner finds out. The owner should be told through a channel the requester does not control, which normally means the old address.
Flows fail in a few common ways:
- They trust the session cookie alone. A cookie is a small piece of data the browser stores after you log in, and the site uses it to recognise you on later requests. Anyone holding a live cookie (on a shared computer, or through a stolen cookie) can act as you.
- They send the confirmation only to the new address, so the real owner hears nothing.
- They apply the change before the new address is confirmed.
- They leave the old address valid after the change, or never notify it once the change is done, so the owner has no chance to react.
The standard defences follow from that: require the current password or a fresh second-factor check; notify the old address as well as the new one, ideally with a link to cancel; keep the old address active until the new one is verified; and send a final notice to the old address after the change, with a way to undo it.
How to test for it
If you want to check a site you own or are allowed to test, here is a simple sequence. You only need a browser and two mailboxes you control.
- Create two mailboxes you control and an account on the target site. Note which address is on the account.
- Open the email change feature and submit a change to the second mailbox. Watch both inboxes.
- Record whether a message arrives at the old address, the new address, both, or neither, and whether the change takes effect before any link is clicked.
- Repeat the submission without entering the account password. If the change is accepted, the re-authentication requirement is missing.
- Check the order of operations: does the profile show the new address immediately, or only after the new mailbox confirms? Does the old address remain valid in the meantime?
- Test the same flow from a session you did not create through the normal login, for example a second browser profile, to see whether the session alone is sufficient.
A positive result is a change that is accepted without a password prompt and with no notification to the old address, or a change that becomes effective before the new address is verified. Watch out for false positives: a notification to the old address that is delayed or lands in spam; a password prompt that appears on a later step of a multi-page flow; a change that is only staged and never applied until confirmation; and mail filters that hide the message. Confirm each case by checking the account state directly rather than relying on inbox timing.
How it is fixed
Require the current password or a fresh second-factor check before accepting an email change. Send a confirmation link to the new address and a separate notification, with a cancellation link, to the old address. Do not apply the change until the new address is verified, and keep the old address able to receive mail until then. After the change completes, notify the old address once more so the owner can revert it. Rate-limit change requests and log them so unusual activity is visible.
Where to look for this bug
This class of bug hides in account settings: email, phone, backup address, recovery questions, linked identities and password reset preferences. It is common on forums, business dashboards and older community platforms where settings pages grew over time. Signs worth checking include a settings page that accepts a new contact value, any flow that mentions verification but sends mail to only one side, and features that let a user change identity data without a password field on the form.
To make a report land, show the full sequence with timestamps: the request, the absence of mail at the old address, the absence of a password prompt, and the resulting account state. Demonstrate the consequence concretely, for example that a password reset now goes to the attacker-controlled mailbox, but only claim what you actually observed. Keep the test on accounts you own and avoid touching other users' data.
Glossary
- Account: the personal record a user has on a website, protected by a login.
- Email address on file: the address stored in the account, used for contact and usually for password recovery.
- Confirmation email: a message with a link or code that proves the recipient can read that mailbox.
- Re-authentication: asking the user to prove again, usually with their password, that they are the account owner at that moment.
- Session: the period after you log in during which the site remembers you.
- Cookie: a small piece of data the browser stores and sends back to the site so it can recognise your session.
- Session cookie: the specific cookie that identifies your logged-in session.
- Public computer: a shared machine, such as in a library or cafe, where other people can use the same browser afterwards.
- Account loss: losing access to your own account, for example because its email was changed to one you do not control.
- Password reset: the feature that lets you set a new password, usually by receiving a link at the address on file.
- Second factor (MFA): an extra check beyond the password, such as a code from an app or device.
- Rate-limit: a limit on how often an action can be repeated in a period of time.
- False positive: a test result that looks like a problem but is not one.
- Out-of-band signal: a notification sent through a different channel from the one the requester is using, so the real owner learns about the action.