Switching the format of the node editing - run filter by AJAX, saving node rewrites the raw value in the database - it is contrary to the default behavior of Drupal!
- Value In the field "Body" is always stored as raw value and should not pass xss filtering - this is the default behavior of Drupal.
- Filters used when viewing a page should be based on the format("Filters content in preparation for display"- Filter module description), not when editing.
- WYSIWIG provides XSS filtering
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | disable-xss-ajax-filter-2000712-1.patch | 3.51 KB | Andrei.Sapeshko |
Comments
Comment #1
Andrei.Sapeshko commentedРossible solution.
Comment #1.0
Andrei.Sapeshko commentedSome additions
Comment #2
drifter commentedI think the point they made is that the content is loaded as HTML rather than plain text in CKEditor, and so the XSS attacks could fire while editing content. Nevertheless, this should at least be a clearly labeled option that I can disable, as currently it is erasing important parts of the content's HTML!
Comment #3
jcisio commentedThere won't be that option. From the CKEditor CTO: http://stackoverflow.com/a/12099443/417401.
So the AJAX XSS filter was added to protect from server side. If it has bug, then let's fix it instead of removing the filter.
Comment #3.0
jcisio commentedSome additions