MozillaSecurity / funfuzz

A collection of fuzzers in a harness for testing the SpiderMonkey JavaScript engine.
Mozilla Public License 2.0
630 stars 115 forks source link

Fuzzmanager TypeError unexpected keyword argument 'widget' #37

Closed ghost closed 8 years ago

ghost commented 8 years ago

my os is ubuntu 14.04 64bit.

Step to reproduce

  1. Go to directory /FuzzManager/server and run "python manage.py runserver"
  2. Go to 127.0.0.1:8000 and I will see TypeError message.

I posted my Traceback on pastbin. Please check it.

https://pastebin.mozilla.org/8872030


This is local Variable.

/usr/local/lib/python2.7/site-packages/rest_framework/fields.py in init

Variable Value self

CharField(required=False, widget=<class 'django.forms.widgets.Textarea'>)

kwargs

{'required': False, 'widget': <class 'django.forms.widgets.Textarea'>}


In order to fix this, what should I do?

I think there are so many errors on funfuzz... Probably it is impossible to configure funfuzz.

ghost commented 8 years ago

widget = class 'django.forms.widgets.Textarea'

widget became empty because I used less-than sign <

nth10sd commented 8 years ago

@kazenomamani210, looking at the stack, next time you might want to file FuzzManager issues here: https://github.com/MozillaSecurity/FuzzManager/issues

About this one, @choller any ideas?

choller commented 8 years ago

@kazenomamani210 Can you please post the versions of Django and djangorestframework ?

Did you perform any other steps like submitting something, prior to encountering this error?

ghost commented 8 years ago

I am sorry for posting fuzzmanager issue on this.


Django Version: 1.7.11

djangorestframework==3.3.3


Before configure fuzzmanager, I used jsfunfuzz because I didn't know that I should configure fuzzmanager in order to receive error report properly.

Maybe is that the route cause? If so, probably I need to uninstall funfuzz and fuzzmanager and re-install everything...

choller commented 8 years ago

No, the problem is likely that you have the wrong dependencies. You use djangorestframework 3.x.x while requirements.txt specifies 2.4.4. Please try a 2.x version (maybe even 2.4.x). They might have changed a lot of API in 3.x which we haven't adapted yet.

ghost commented 8 years ago

Thank you for your advice. I will change immediately.

ghost commented 8 years ago

@choller This issue has been solved by installing djangorestframework 2.4.4. FuzzManager will not work on ver. 3.x.x. I think this info should be included on readme doc or introduction page.