fablabbcn / fablabs.io

The platform of the global Fab Labs Network
https://fablabs.io
GNU Affero General Public License v3.0
67 stars 33 forks source link

Add trotelling to Recovery controller #600

Open pral2a opened 2 years ago

pral2a commented 2 years ago

Describe the bug Looks like recovery password controller doesn't limit the number of requests, allowing someone to programatically use it to generate email spam or overload the SMTP service

To Reproduce Steps to reproduce the behaviour:

  1. Go to https://www.fablabs.io/recoveries/new
  2. Type your email and click Reset password
  3. Repeat multiple times in a short period
  4. Check your inbox

Expected behaviour Rate limit password resets by email to X amount per hour. Other limitation (ip) can also be used.

Additional context The issue was reported by an unknown user at webmasters (at) fablabs.io. This is not a high priority issue.

image (4)