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

DoS by using invalid queries #38

Open
johannespfeiffer opened this issue Feb 3, 2020 · 1 comment
Open

DoS by using invalid queries #38

johannespfeiffer opened this issue Feb 3, 2020 · 1 comment

Comments

@johannespfeiffer
Copy link

When creating invalid queries, e.g. by using fields that do not exist we can bypass the complexity costs.

Let's say the request contains 30k very small and invalid queries, then we will have at least 30k errors in the response. I would have expected that this goes into the maximumCost calculation when using defaultCost: 1.

@ravangen
Copy link

I suspect this problem is outside of the scope of this library. It likely depends on the server implementation you are using with is package. Relates to graphql/graphql-js#2074

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

2 participants