-
Notifications
You must be signed in to change notification settings - Fork 234
Not editable fields are not XSS attack secure #644
Comments
You have to explain more. The function |
Hi, thanks for your reply, it is rendered by twig only when $this->isEditableContentRequired($row) is true, but in my case I have field like this( $this->isEditableContentRequired($row) returns false):
which can be edited in another action and it is not escaped from js/html tags. |
I got the same problem when using dev-master version. I use this bundle to list my objects (for example: Article ), in this datatable I show Article title. If I add an Article with title like |
Not only column data, but also other outputs are unprotected when rendering a datatable. I tried above trick with username which is showed in the same view as datatable successfully. |
Still vulnerable, had to fork to fix this issue |
Related to #845 |
I noticed in renderSingleField function(vendor/sg/datatablesbundle/Sg/DatatablesBundle/Datatable/Column/Column.php ) that if column is not editable then data is not rendered by Twig so the content is not escaped and allow XSS attack
The text was updated successfully, but these errors were encountered: