Issue Bug Closed

#20835RemoveXSS corrupts HTML

Dmitry Dulepov 08/05/09, 14:47 updated 09/09/13, 11:14

Description

Try RemoveXSS on this code:

<![CDATA[
<div style="x:y">test</div>
]>

The result is:

<![CDATA[
<div <x>yle="x:y">test</div>
]>

which looks on the screen like:

yle="x:y">test

Suggestions:
- process tags and attributes separately
- change <x> to x<br>- do not replace first to chars but prepend “x” to the attribute<br>- do not replace style attribute<br>(issue imported from #M11649)</x>

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.