batchql: GraphQL security auditing script
BatchQL
BatchQL is a GraphQL security auditing script with a focus on performing batch GraphQL queries and mutations. This script is not complex, and we welcome improvements.
When exploring the problem space of GraphQL batching attacks, we found that there were a few blog posts on the internet, however no tool to perform GraphQL batching attacks.
GraphQL batching attacks can be quite serious depending on the functionalities implemented. For example, imagine a password reset functionality which expects a 4 digit pin that was sent to your email. With this tool, you could attempt all 10k pin attempts in a single GraphQL query. This may bypass any rate limiting or account lockouts depending on the implementation details of the password reset flow.
Detections
This tool is capable of detecting the following:
- Introspection query support
- Schema suggestions detection
- Potential CSRF detection
- Query name-based batching
- Query JSON list based batching
Attacks
Currently, this tool only supports sending JSON list-based queries for batching attacks. It supports scenarios where the variables are embedded in the query, or where they are provided in the JSON input.
Download
git clone https://github.com/assetnote/batchql.git