Commit 131c762
committed
feat(auth): add email-scoped report-only rate limits for passwordless OTP verify
Because:
* 6-digit OTP codes are vulnerable to distributed brute-force without
email-scoped limits
* We need production data on per-email verification volume before
switching from report to block mode
This commit:
* Add passwordlessVerifyOtp email-scoped rule (10 per 10min, report)
* Add passwordlessVerifyOtpPerDay email-scoped rule (20 per 24h, report)
Closes #FXA-133311 parent 125e37d commit 131c762
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
196 | 197 | | |
197 | 198 | | |
| 199 | + | |
198 | 200 | | |
0 commit comments