You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From looking at the code, in main.go, it looks like there is nothing preventing an user from flooding the API and creating loads of accounts in a short amount of time. It would probably be a better idea to add a cooldown to all handlers to avoid potentially overloading the server / database.
I haven't checked how this server is run so it's possible there is a ratelimit on the reverse proxy its being run behind.
Maybe worth taking a look? Feel free to point out what I got wrong.
Hi,
From looking at the code, in main.go, it looks like there is nothing preventing an user from flooding the API and creating loads of accounts in a short amount of time. It would probably be a better idea to add a cooldown to all handlers to avoid potentially overloading the server / database.
I haven't checked how this server is run so it's possible there is a ratelimit on the reverse proxy its being run behind.
Maybe worth taking a look? Feel free to point out what I got wrong.