Modify ↓
Opened 12 years ago
Closed 11 years ago
#11593 closed defect (fixed)
Style has not been sanitized
| Reported by: | Owned by: | Mikael Relbe | |
|---|---|---|---|
| Priority: | normal | Component: | WikiExtrasPlugin |
| Severity: | normal | Keywords: | |
| Cc: | Trac Release: |
Description
I input CSS Expression in box.
{{{#!box style="width:expression(alert(1));"
}}}
Output:
<div class="wikiextras box shadow" style="width:expression(alert(1));"></div>
This can used to attack xss in IE8 or older. Do you sanitize like WikiHtml(#!html)?
Attachments (1)
Change History (3)
Changed 12 years ago by
| Attachment: | sanitize-attribute-r13796.diff added |
|---|
comment:1 Changed 12 years ago by
Note: See
TracTickets for help on using
tickets.



The plugin certainly should sanitize the attributes. Also,
#!Colorprocessor has the same issue.{{{#!Color color=green font-size="expression(alert(1));" }}}Please try sanitize-attribute-r13796.diff.