searchengine-devtools has XSS vulnerabilities in configuration handling
Categories
(Firefox :: Search, defect, P2)
Tracking
()
People
(Reporter: standard8, Assigned: standard8)
References
(Blocks 1 open bug)
Details
(Keywords: sec-other)
This is a follow-up to bug 1660282. That bug has stopped the XSS for the display of various elements on the UI, but we still need to sanitise / check the configuration before we pass it to the back-end and use it.
I have a few ideas on how to do that, will hopefully get time to look later this week.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
I hope to get to this soon, but no guarantees at the moment.
Comment 2•4 years ago
•
|
||
I would appreciate if we could address this soon. Originally, the previous version was approved under the agreement that this gets fixed within 1 week. It's been more than 8 weeks now.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 3•4 years ago
|
||
Andreas, please can you take a look at this PR I'm working on:
https://github.com/mozilla-extensions/searchengine-devtools/pull/25/files
The basic idea is to use ajv to create a validation function based on the schema, and then use that validation on the loaded configurations.
Unfortunately due to the way ajv works, we have to webpack the validation function.
At the moment the schema is mainly validating the types of fields rather than the content, if this general method looks alright to you, then I'll update the schema to add more in-depth validation of the contents of the fields.
Comment 4•4 years ago
|
||
This looks good to me! Thank you for working on it, Mark!
Assignee | ||
Comment 5•4 years ago
|
||
PR is now ready: https://github.com/mozilla-extensions/searchengine-devtools/pull/25
Once we've landed that I'll also update the copies of the schemas from in-tree & on the remote settings servers.
Assignee | ||
Comment 7•4 years ago
|
||
Andreas, this is now on ship-it and ready for release as 1.1.6.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 9•4 years ago
|
||
Thank you, this is now fully released.
Updated•4 years ago
|
Updated•3 years ago
|
Description
•