Actions
Bug #20835
closedRemoveXSS corrupts HTML
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-08-05
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
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
- do not replace first to chars but prepend "x" to the attribute
- do not replace style attribute
(issue imported from #M11649)
Files
Actions