KissPeter / APIFuzzer

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

Field with the name (v1+themes|post|inherited) already exists in this container #37

Closed uBadRequest closed 4 years ago

uBadRequest commented 4 years ago

What does this error mean?

[INFO    ][fuzz_request_sender.__init__] Logger initialized
Traceback (most recent call last):
  File "fuzzer.py", line 158, in <module>
    prog.run()
  File "fuzzer.py", line 54, in run
    model.connect(template.compile_template())
  File "/root/tools/APIFuzzer/apifuzzer/base_template.py", line 43, in compile_template
    template.append_fields([Container(name=name, fields=field)])
  File "/usr/local/lib/python3.8/dist-packages/kitty/model/low_level/container.py", line 65, in __init__
    self.replace_fields(fields)
  File "/usr/local/lib/python3.8/dist-packages/kitty/model/low_level/container.py", line 333, in replace_fields
    self.append_fields(new_fields)
  File "/usr/local/lib/python3.8/dist-packages/kitty/model/low_level/container.py", line 253, in append_fields
    self.push(field)
  File "/usr/local/lib/python3.8/dist-packages/kitty/model/low_level/container.py", line 320, in push
    raise KittyException('field with the name (%s) already exists in this container' % (name))
kitty.core.KittyException: field with the name (v1+themes|post|inherited) already exists in this container
KissPeter commented 4 years ago

Hi It is a bug in my code. Could you please provide the API definition?

KissPeter commented 4 years ago

Please try to reproduce the issue on the Dev branch.

uBadRequest commented 4 years ago

This happened during a pentest and I no longer have access to the instance that I had credentials for. I guess I could try it unauthenticated against another one instance I don't have credentials to.

KissPeter commented 4 years ago

For reproducting the issue you need the API definition only as the issue was in my code.

KissPeter commented 4 years ago

closing due to inactivity, potential fix ready in dev branch