swisskyrepo / GraphQLmap

GraphQLmap is a scripting engine to interact with a graphql endpoint for pentesting purposes. - Do not use for illegal testing ;)
MIT License
1.37k stars 193 forks source link

KeyError: 'data" #39

Open BartekSmalec opened 2 years ago

BartekSmalec commented 2 years ago

Hey, what may be a reason of this kind of error ? `bartek@ubuntu:~/Programs/GraphQLmap$ graphqlmap -u https://****.com/gateway?query={}


/ ____ / __ \ _ __ __ _ '_/ ` '_ \ '_ \ ' ` \ / _` '_ \ __ (_ _) __ ____ (_ _) _____ _ _, .__/ _ _ ______ _ _ _ _, .__/
_ _
                          Author: @pentest_swissky Version: 1.0 

GraphQLmap > dump_via_introspection ============= [SCHEMA] =============== e.g: name[Type]: arg (Type!)

Traceback (most recent call last): File "/usr/local/bin/graphqlmap", line 4, in import('pkg_resources').run_script('graphqlmap==0.0.1', 'graphqlmap') File "/home/bartek/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 656, in run_script self.require(requires)[0].run_script(script_name, ns) File "/home/bartek/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 1460, in run_script exec(script_code, namespace, namespace) File "/usr/local/lib/python3.8/dist-packages/graphqlmap-0.0.1-py3.8.egg/EGG-INFO/scripts/graphqlmap", line 81, in File "/usr/local/lib/python3.8/dist-packages/graphqlmap-0.0.1-py3.8.egg/EGG-INFO/scripts/graphqlmap", line 56, in init File "/usr/local/lib/python3.8/dist-packages/graphqlmap-0.0.1-py3.8.egg/graphqlmap/attacks.py", line 39, in dump_schema KeyError: 'data' ` I've got this error using dump_via_fragment and dump_via_introspection on two different endpoint. Configuration of the endpoints my be the reason ?

mo-at-dave commented 2 years ago

I'm also seeing this