Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate and bound ranges in massCreateTeam in teams.js #4

Closed
alopezlago opened this issue Oct 9, 2020 · 0 comments
Closed

Validate and bound ranges in massCreateTeam in teams.js #4

alopezlago opened this issue Oct 9, 2020 · 0 comments

Comments

@alopezlago
Copy link

massCreateTeams should put an upper bound on the number of teams it will try to create. It should be <500, since Discord has a 500 channel limit. createTeam will probably throw when it reaches that limit; otherwise this lack of validation could be a denial-of-service risk since you could make the loop run for a long time (e.g. 9999999999... iterations).

@alchzh alchzh closed this as completed in 9ff69c6 Oct 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant