Skip to content

GraphQL Security Research Material

Notifications You must be signed in to change notification settings

attackgithub/graph-ql

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL Official Logo

GraphQL Security Toolkit

With the increasing popularity of GraphQL technology, we will be using this repository to publish scripts and other resources that can facilitate security testing efforts.

GraphQL Introspection

Author: Paolo Stagno (@Void_Sec - voidsec.com)

A tool to query a GraphQL endpoint with introspection in order to retrieve the documentation of all the Queries, Mutations & Subscriptions. The script will also generate templates (with optional placeholders) for all the known types, usefull for Burp Suite repeater.

The resulting HTML page will contain details for all available Queries, Mutations and Subscriptions as shown here:

Preview

Templates:

Preview

Usage:

usage: GraphQL_Introspection.py [-h] [-t TARGET] [-f SCHEMA_JSON_FILE]
                                [-k KEY] [-p PROXY] [-d]

arguments:
  -h, --help           show this help message and exit
  -t TARGET            Remote GraphQL Endpoint (https://<Target_IP>/graphql)
  -f SCHEMA_JSON_FILE  Schema file in JSON format
  -k KEY               API Authentication Key
  -p PROXY             IP of web proxy to go through (http://127.0.0.1:8080)
  -d                   Replace known GraphQL arguments types with placeholder
                       values (useful for Burp Suite)
  
$python GraphQL_Introspection.py -t http://192.168.1.82/examples/04-bank/graphql

Terminal Output:

Preview

Future Updates

We are currenyly working on "porting" this script into a Burp Extension with a nice and clean GUI. Do not be afraid, it will also be possible to use it as a stand-alone script.

About

GraphQL Security Research Material

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%