Skip to content

Limit OTP guesses to 3 in all contexts#1654

Merged
monfresh merged 1 commit intomasterfrom
mb-max-otp-attempts
Sep 1, 2017
Merged

Limit OTP guesses to 3 in all contexts#1654
monfresh merged 1 commit intomasterfrom
mb-max-otp-attempts

Conversation

@monfresh
Copy link
Contributor

Why: Previously, we allowed unlimited OTP guesses when confirming
a phone number because we didn't think this posed any security risks.
In hindsight this was a poor decision since it can portray our app as
being insecure and affects our reputation and confidence in the system.
We should be defaulting to safe everywhere.

How: Remove any conditional logic that determines whether or not
guesses should be limited. Everyone will now be limited to 3 OTP guesses
regardless of context.

**Why**: Previously, we allowed unlimited OTP guesses when confirming
a phone number because we didn't think this posed any security risks.
In hindsight this was a poor decision since it can portray our app as
being insecure and affects our reputation and confidence in the system.
We should be defaulting to safe everywhere.

**How**: Remove any conditional logic that determines whether or not
guesses should be limited. Everyone will now be limited to 3 OTP guesses
regardless of context.
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zachmargolis
Copy link
Contributor

Should we add a feature spec that checks for being locked out during signup?

@monfresh
Copy link
Contributor Author

That spec is in this PR already. The filename of the spec is misleading. I can move it to a new properly-named spec if you prefer.

@zachmargolis
Copy link
Contributor

Nope, I wasn't looking in the right place. It works! 👍

Copy link
Contributor

@jmhooper jmhooper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Works for me 👍

@monfresh monfresh merged commit f7d7319 into master Sep 1, 2017
@monfresh monfresh deleted the mb-max-otp-attempts branch September 1, 2017 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants