The block default symbols are not being sanitized before they are output to the screen causing an XSS error.

Steps to repeat:
1. browse to /admin/settings/stock
2. enter a javascript alert() into the 'Block Default Symbols' form field.
3. upon saving, the alert box is displayed.
4. the alert box is being displayed on all pages that include the block too.

CommentFileSizeAuthor
#1 XSS-1371950-2.patch524 bytespfrilling

Comments

pfrilling’s picture

StatusFileSize
new524 bytes

Attached is a patch file that fixes this issue.

izmeez’s picture

Patch applies without problem to the latest 6.x-1.dev release. Still in process of testing the module.

izmeez’s picture

Issue summary: View changes

Steps #4 in steps to repeat was incorrect. The XSS was coming from the drupal_set_message().