Closed
Bug 1075030
Opened 11 years ago
Closed 11 years ago
[traceback] fuzzing throws RequiredParameterError: signature error
Categories
(Socorro Graveyard :: Middleware, defect)
Socorro Graveyard
Middleware
Tracking
(Not tracked)
VERIFIED
FIXED
106
People
(Reporter: stephend, Assigned: peterbe)
References
()
Details
(Whiteboard: [fuzzer])
Attachments
(1 file)
187.80 KB,
image/png
|
Details |
I just fuzzed Socorro staging, and found this:
https://crash-stats.allizom.org/signature_summary/json_data?%27%22--%3E%3C/style%3E%3C/scRipt%3E%3CscRipt%3Enetsparker%280x00109E%29%3C/scRipt%3E throws:
RequiredParameterError: signature
Stacktrace (most recent call last):
File "django/core/handlers/base.py", line 113, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "crashstats/crashstats/utils.py", line 53, in wrapper
response = f(request, *args, **kw)
File "crashstats/crashstats/views.py", line 2154, in signature_summary
versions=version,
File "crashstats/crashstats/models.py", line 313, in get
return self._get(expect_json=expect_json, **kwargs)
File "crashstats/crashstats/models.py", line 364, in _get
params = self.kwargs_to_params(kwargs)
File "crashstats/crashstats/models.py", line 408, in kwargs_to_params
raise RequiredParameterError(name)
Errormill: https://errormill.mozilla.org/webtools/socorro-stage/group/172855/
Comment 1•11 years ago
|
||
I don't think fuzzing is related here, it's raising an exception because required parameters are missing, you can make it happen by passing no parameters at all:
https://crash-stats.allizom.org/signature_summary/json_data
We should return a nicer error message instead of 500ing.
Assignee | ||
Comment 2•11 years ago
|
||
It's a very harmless 500 but it's annoying because it pings us by email and on sentry. We should have caught it in some input validation.
Assignee: nobody → peterbe
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•11 years ago
|
||
Comment 4•11 years ago
|
||
Commits pushed to master at https://github.com/mozilla/socorro
https://github.com/mozilla/socorro/commit/d288a9c734593e39796f595ecf4ca5da72c90692
fixes bug 1075030 - fuzzing throws RequiredParameterError: signature error
https://github.com/mozilla/socorro/commit/612dc98688e36275c49f69a5da0a821180e0f6c3
Merge pull request #2409 from peterbe/bug-1075030-fuzzing-throws-requiredparametererror-signature-error
fixes bug 1075030 - fuzzing throws RequiredParameterError: signature error
Updated•11 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 5•11 years ago
|
||
Verified FIXED on https://crash-stats.allizom.org/signature_summary/json_data?%27%22--%3E%3C/style%3E%3C/scRipt%3E%3CscRipt%3Enetsparker%280x00109E%29%3C/scRipt%3E - I now get a 400.
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 6•11 years ago
|
||
Updated•11 years ago
|
Target Milestone: --- → 106
Updated•9 years ago
|
Product: Socorro → Socorro Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•