Skip to content

Commit 131c762

Browse files
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-13331
1 parent 125e37d commit 131c762

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/fxa-auth-server/config/rate-limit-rules.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ passwordlessSendOtp : ip : 100 : 24 hou
193193

194194
# Passwordless OTP Verification Limits
195195
passwordlessVerifyOtp : ip_email : 5 : 10 minutes : 15 minutes : block
196+
passwordlessVerifyOtp : email : 10 : 10 minutes : 30 minutes : report
196197
passwordlessVerifyOtp : ip : 100 : 24 hours : 15 minutes : ban
197198
passwordlessVerifyOtpPerDay : ip_email : 10 : 24 hours : 24 hours : block
199+
passwordlessVerifyOtpPerDay : email : 20 : 24 hours : 24 hours : report
198200
passwordlessVerifyOtpPerDay : ip : 100 : 24 hours : 15 minutes : ban

0 commit comments

Comments
 (0)