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(security): add rate limiting to POST requests #249

Merged
merged 1 commit into from
Nov 23, 2019

Conversation

adrienjoly
Copy link
Member

@adrienjoly adrienjoly commented Nov 23, 2019

What does this PR do / solve?

Malicious users may want to brute force our /login endpoint to guess a user's credentials.

Overview of changes

Rate limiting POST requests reduces the effectiveness of this kind of attack.

How to test this PR?

After deploying this PR to production:

$ siege --concurrent=10 --reps=10 --benchmark --no-parser 'https://openwhyd.org/login' # should pass
$ siege --concurrent=10 --reps=10 --benchmark --no-parser 'https://openwhyd.org/login POST login=dummy' # should rate limit some of the requests

@adrienjoly adrienjoly self-assigned this Nov 23, 2019
@adrienjoly adrienjoly added this to 📥 Inbox / ideas in Development via automation Nov 23, 2019
@adrienjoly adrienjoly merged commit eedb462 into master Nov 23, 2019
Development automation moved this from 📥 Inbox / ideas to ✔️ Done / pending QA Nov 23, 2019
@adrienjoly adrienjoly deleted the feat/security-rate-limiting branch November 23, 2019 23:43
adrienjoly pushed a commit that referenced this pull request Nov 23, 2019
# [1.18.0](v1.17.3...v1.18.0) (2019-11-23)

### Features

* **security:** add rate limiting to POST requests ([#249](#249)) ([eedb462](eedb462))
@adrienjoly adrienjoly moved this from ✔️ Done / pending QA to 🌲 In production in Development Nov 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development
  
🌲 In production
Development

Successfully merging this pull request may close these issues.

None yet

1 participant