Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: delegate SMS code generation, sending and verification to an external service (PS-221) #4113

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

splaunov
Copy link
Contributor

Phone/sms registration and login flows are vulnerable to sms pumping attacks.
This PR allows to delegate all the key steps of the flow to an external service which is able to detect sms pumping and throttle requests.

Related issue(s)

Checklist

  • [x ] I have read the contributing guidelines.
  • I have referenced an issue containing the design document if my change
    introduces a new feature.
  • [x ] I am following the
    contributing code guidelines.
  • [x ] I have read the security policy.
  • [x ] I confirm that this pull request does not address a security
    vulnerability. If this pull request addresses a security vulnerability, I
    confirm that I got the approval (please contact
    [email protected]) from the maintainers to push
    the changes.
  • [x ] I have added tests that prove my fix is effective or that my feature
    works.
  • I have added or changed the documentation.

Further Comments

splaunov and others added 2 commits June 13, 2024 20:18
…ternal service (PS-221)

ignore: respond 400 when code is invalid (PS-307)

ignore: accept all http codes from 200-300 range

ignore: add `body` parameter to request config schema (PS-221)

feat: delegate SMS code generation, sending and verification to an external service - registration flow (PS-262)

feat: delegate SMS code generation, sending and verification to an external service - login flow (PS-263)

feat: delegate SMS code generation, sending and verification to an external service - verification flow (PS-221)
@CLAassistant
Copy link

CLAassistant commented Sep 19, 2024

CLA assistant check
All committers have signed the CLA.

@aeneasr
Copy link
Member

aeneasr commented Sep 19, 2024

Looks like your branch and master have divereged. We recently merged improvements to SMS which probably cause the conflicts.

@splaunov
Copy link
Contributor Author

Yes, we are a bit behind the master.
I can rebase it. But it only makes sense if you are about to accept this feature.
What would be your stance on this?

@aeneasr
Copy link
Member

aeneasr commented Sep 19, 2024

The problem described is definitely something we should consider. Regarding the approach, I'm not sure if I fully understand how it works, but it does look a bit "strapped on" from first glance, with hardcoded values and some other things, which make me question if it wouldn't be better to use hooks and transient payloads for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants