KissPeter / APIFuzzer

Fuzz test your application using your OpenAPI or Swagger API definition without coding
GNU General Public License v3.0
416 stars 65 forks source link

Invalid JSON-Data Value #36

Closed naveenn2n closed 4 years ago

naveenn2n commented 4 years ago

After utilizing fuzzer, am getting invalid json data value. While passing the
fuzzer.py: error: argument --headers: invalid json_data value: '[{Authorization:'

Constructed payload. python fuzzer.py -s test/swagger.json -u http://muurl --headers [{"Authorization": "Placed Valid Token"}] -r /tmp/reports/ --log debug

Due to privacy issues, haven't pasted url and token.

KissPeter commented 4 years ago

hi what about --headers '[{"Authorization": "Placed Valid Token"}]' with ' around the value? I assume value after space is recognised as different argument.

naveenn2n commented 4 years ago

Hi Kiss, I tried different way of passing. Removing spaces, Single quotes, Doubles Quotes etc., But getting same error everytime.

KissPeter commented 4 years ago

Hi, I've added tests to cover this functionality, seems working. Maybe it is cauased by your environment. Please do the following

naveenn2n commented 4 years ago

Thanks @KissPeter. It's working fine.