Denial of service attack
See original GitHub issueIt was very easy to craft a query that caused the playground to crash. It seems that this query took over 25 seconds to respond to, and the content of the response seems to be 18 MB (!)
query HeroAndFriends {
hero {
name
friends {
friends {
friends {
friends {
friends {
friends {
friends {
friends {
friends {
name
}
}
}
}
}
}
}
}
}
}
}
Subsequent queries result in 503 Service Unavailable
.
Another worrying point is that there seem to be just a few unique characters, which are embedded recursively in the response. They could have been de-duplicated to avoid such a massive response.
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
What is a denial of service attack (DoS) ? - Palo Alto Networks
A Denial-of-Service (DoS) attack is an attack meant to shut down a machine or network, making it inaccessible to its intended users. DoS...
Read more >Understanding Denial-of-Service Attacks | CISA - US-CERT
A denial-of-service (DoS) attack occurs when legitimate users are unable to access information systems, devices, or other network resources due ...
Read more >Denial-of-service attack - Wikipedia
In computing, a denial-of-service attack (DoS attack) is a cyber-attack in which the perpetrator seeks to make a machine or network resource unavailable...
Read more >What is a denial-of-service (DoS) attack? - Cloudflare
A denial-of-service (DoS) attack is a malicious attempt to overwhelm an online service and render it unusable. Learn more about DoS attacks.
Read more >What is a Denial-of-Service Attack? - TechTarget
A denial-of-service (DoS) attack is a security threat that occurs when an attacker makes it impossible for legitimate users to access computer systems,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I would appreciate if you could elaborate on this statement and maybe provide some context. Are you talking about specific service you have in production?
If I understand your suggestion correctly, then this feature is already provided by sangria. I would recommend you to check the documentation of Fetch API (“Caching” subsection):
http://sangria-graphql.org/learn/#high-level-fetch-api
I don’t find this statement constructive 😃 If you believe that particular point, that you have raised, is being ignored, I would appreciate if you could repeat it and maybe describe it in more detail and how it relates to sangria implementation.
@daliwali Is this is an issue with sangria or just a general criticism of GraphQL? If the former, you may want to avoid using public playgrounds on heroku as a benchmark of a technology. If the latter this may not be the most useful location for it.