Wp-calypso: Security: when 2FA is disabled I can still reset via SMS

Created on 29 Mar 2017  路  6Comments  路  Source: Automattic/wp-calypso

Steps to reproduce:

  1. Start at https://wordpress.com/me/security/two-step
  2. Enable Two-Step Authentication (2FA).
  3. Disable 2FA.
  4. Lot out and to reset the account password using SMS.

Result: it's possible to reset via SMS because we don't delete the mobile number when 2FA is disabled.

With 2FA disabled (and no recovery SMS number set) password resets should be done via email only.

/hat tip @vortfu for the report (internal ref: p14908088198266170-triage)

Code ref: /trunk/wp-content/mu-plugins/account-recovery.php?r=152585#991

Security [Pri] High [Type] Bug

Most helpful comment

@GeoJunkie A reset email is also sent to the user, and is mentioned on the SMS form (albeit not in the most obvious text):

screen shot 2018-03-13 at 11 27 34 am

All 6 comments

This issue has been marked as stale because it hasn't been updated in a while. It will be closed in a week.
If you would like it to remain open, can you please you comment below and see what you can do to get things moving with this issue?
Thanks! 馃檹

bump

In progress: d10756-code

I have had this issue come up again, and it's causing worse problems. When a user has a stuck 2FA code like this, they're unable to use the password reset link as it will send an SMS to the old number, as well.

Steps to reproduce:

  1. Add 2FA via SMS to an account.
  2. Remove 2FA from the account (the user RC will still show the Account Recovery number).
  3. Go to https://en.wordpress.com/wp-login.php?action=lostpassword
  4. Enter the email address for the account that no longer has 2FA.

The Lost Password form will send an SMS and ask the user for the code which, if they no longer have that phone, they won't be able to access.

@GeoJunkie A reset email is also sent to the user, and is mentioned on the SMS form (albeit not in the most obvious text):

screen shot 2018-03-13 at 11 27 34 am

Fixed in r171829-wpcom.

Was this page helpful?
0 / 5 - 0 ratings