Webhook spam causes Denial-of-Service #1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I've seen some people spam the /submit endpoint, causing the Webhook to get ratelimited which will result in a Denial-of-Service of the send message function.
An easy way to fix this would be to check if the length < 1.
I may create a pull request once I have enough time to read myself into the code and write a patch.
While I'm at it: It would be a good idea to check for the
POST
method and if any other method is used return a405 Method Not Allowed
error.