Page MenuHomePhabricator

Rate limit attempts to add payment methods in Phortune
ClosedPublic

Authored by epriestley on Feb 13 2019, 1:18 PM.
Tags
None
Referenced Files
F13185947: D20158.diff
Sat, May 11, 3:19 AM
Unknown Object (File)
Tue, May 7, 12:08 PM
Unknown Object (File)
Tue, May 7, 5:58 AM
Unknown Object (File)
Fri, May 3, 3:38 AM
Unknown Object (File)
Mon, Apr 29, 3:36 PM
Unknown Object (File)
Wed, Apr 24, 11:36 PM
Unknown Object (File)
Sun, Apr 21, 6:13 PM
Unknown Object (File)
Apr 8 2024, 8:33 AM
Subscribers
None

Details

Summary

Ref T13249. See D20132. Although we're probably a poor way to validate a big list of stolen cards in practice in production today (it's very hard to quickly generate a large number of small charges), putting rate limiting on "Add Payment Method" is generally reasonable, can't really hurt anything (no legitimate user will ever hit this limit), and might frustrate attackers in the future if it becomes easier to generate ad-hoc charges (for example, if we run a deal on support pacts and reduce their cost from $1,000 to $1).

Test Plan

Reduced limit to 4 / hour, tried to add a card several times, got rate limited.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable