Ticket #2473 (closed defect: fixed)
XSS scripting attack possible from html wikiprocessor
| Reported by: | dkg-debian.org@… | Owned by: | cmlenz |
|---|---|---|---|
| Priority: | high | Milestone: | 0.9.3 |
| Component: | general | Version: | 0.9.2 |
| Severity: | normal | Keywords: | security |
| Cc: |
Description
Using the html WikiProcessor, it's possible to inject a malicious script (for example, a cookie-stealing attack) against other clients viewing the page with IE or Opera (and possibly other browsers).
As an example of this Cross-Site Scripting (XSS) attack, consider the following:
{{{
#!html
<IMG SRC="javascript:alert('XSS');">
}}}
When viewing a page with this code inserted under opera or IE (i think -- don't have a windows box handy for testing), a javascript alert dialog box should pop up with the text "XSS". Transforming this into a cookie-stealing attack or other malicious activity is left as an exercise to the reader.
Trac has done a decent job about filtering the more obvious of these in the html WikiProcessor (e.g. Trac disallows the <script> tag), but overly-permissive browsers make this a much tricker problem.
For more information about some other possible XSS vectors, see http://ha.ckers.org/xss.html


