Describe the bug
After the patches of #722, I manually found a simple bypass of the HTML entity regex, and ran the fuzzer again to find another HTML corruption.
To Reproduce
- The browser decodes
: to : forming a javascript: protocol URL (entities can be prefixed with any amount of 0's).
[Click me](javascript:alert(origin))
<p><a href="javascript:alert(origin)">Click me</a></p>
- Weird combination of syntax again resulting in raw HTML being output:
<x><svg onload=alert(origin)
<p><x<img src="code><a
></code" alt="" />><svg onload=alert(origin)<img src="code><a
></code" alt="" /></p>
Expected behavior
Safe HTML is output. Maybe use a proper HTML entity decoder to solve the first.
Debug info
Version of library being used: ba92f30 (latest master at time of writing)
Describe the bug
After the patches of #722, I manually found a simple bypass of the HTML entity regex, and ran the fuzzer again to find another HTML corruption.
To Reproduce
:to:forming ajavascript:protocol URL (entities can be prefixed with any amount of0's).Expected behavior
Safe HTML is output. Maybe use a proper HTML entity decoder to solve the first.
Debug info
Version of library being used: ba92f30 (latest
masterat time of writing)