Open Bug 1535274 Opened 6 years ago Updated 6 years ago

Basket emails can be sent to an incorrect email address after primary address changed on FxA

Categories

(Marketing :: Email, defect)

defect
Not set
normal

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: code, Unassigned)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:65.0) Gecko/20100101 Firefox/65.0

Steps to reproduce:

  1. Sign Up with an email address, such as first@firefox.com
  2. Add a secondary email in that account, suach as second@firefox.com
  3. Set second@firefox.com as primary email address
  4. Delete the old one, here is first@firefox, only keep second@firefox.com
  5. You will find that all emails from firefox or mozilla were sent to first@firefox.com, not second@firefox.com.

Actual results:

All emails from firefox or mozilla were sent to first@firefox.com which is not in the account, and the primary email address in that account never gets any email.

Expected results:

The old email address should not get the emails, and the primary email should get the emails.

Group: firefox-core-security → cloud-services-security
Component: Untriaged → Server: Firefox Accounts
Product: Firefox → Cloud Services
Group: cloud-services-security → mozilla-employee-confidential

cloud-services-security → mozilla-employee-confidential

It's not clear from the context whether we're ruled out a security issue here; the report makes it sounds like we're straight-up sending emails to the wrong address, possibly by reading the original account address from accounts.email (where we keep it around for password-hashing purposes) rather than from the emails table.

Actually, from the screenshot it looks like this is one of the emails sent from Salesforce rather than one sent directly from FxA, so I wonder if the change in primary email address has not propagated correctly to that system.

I queried :pmac about this, and this is a paraphrased response:

The marketing team is handling primaryEmailChanged events, but not by changing
the email field associated with the user. Rather because of the limitations of
the way data is stored in their systems, a record of the email change is stored
in a separate table. When emails are sent, it is the responsibility of the
email writer to join the two tables to ensure the correct email is used,
and it's easy to forget to do this.

Also note that these are newsletter emails, and a user may well not want their email address for all Mozilla newsletters to change just because their FxA account email did. Having newsletter management in multiple places (www.m.o and FxA e.g.) has made things somewhat confusing for the user in this regard.

Removing the security sensitive flag, the problem here can be made public.

Group: mozilla-employee-confidential
Component: Server: Firefox Accounts → Email
Product: Cloud Services → Marketing
Summary: The email in firefox account isn't right → Basket emails can be sent to an incorrect email address after primary address changed on FxA
Version: 65 Branch → unspecified
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: