|
|
@ -10,47 +10,70 @@ Should not allow some protocols in links and images |
|
|
|
|
|
|
|
. |
|
|
|
[xss link](javascript:alert(1)) |
|
|
|
|
|
|
|
[xss link](JAVASCRIPT:alert(1)) |
|
|
|
|
|
|
|
[xss link](vbscript:alert(1)) |
|
|
|
|
|
|
|
[xss link](VBSCRIPT:alert(1)) |
|
|
|
|
|
|
|
[xss link](file:///123) |
|
|
|
. |
|
|
|
<p>[xss link](javascript:alert(1))</p> |
|
|
|
<p>[xss link](JAVASCRIPT:alert(1))</p> |
|
|
|
<p>[xss link](vbscript:alert(1))</p> |
|
|
|
<p>[xss link](VBSCRIPT:alert(1))</p> |
|
|
|
<p>[xss link](file:///123)</p> |
|
|
|
. |
|
|
|
|
|
|
|
|
|
|
|
. |
|
|
|
[xss link](JAVASCRIPT:alert(1)) |
|
|
|
[xss link]("><script>alert("xss")</script>) |
|
|
|
. |
|
|
|
<p>[xss link](JAVASCRIPT:alert(1))</p> |
|
|
|
<p><a href="%22%3E%3Cscript%3Ealert(%22xss%22)%3C/script%3E">xss link</a></p> |
|
|
|
. |
|
|
|
|
|
|
|
. |
|
|
|
[xss link](vbscript:alert(1)) |
|
|
|
[xss link](<javascript:alert(1)>) |
|
|
|
. |
|
|
|
<p>[xss link](vbscript:alert(1))</p> |
|
|
|
<p>[xss link](<javascript:alert(1)>)</p> |
|
|
|
. |
|
|
|
|
|
|
|
. |
|
|
|
[xss link](VBSCRIPT:alert(1)) |
|
|
|
[xss link](javascript:alert(1)) |
|
|
|
. |
|
|
|
<p>[xss link](VBSCRIPT:alert(1))</p> |
|
|
|
<p>[xss link](javascript:alert(1))</p> |
|
|
|
. |
|
|
|
|
|
|
|
|
|
|
|
Image parser use the same code base. |
|
|
|
|
|
|
|
. |
|
|
|
[xss link](file:///123) |
|
|
|
![xss link](javascript:alert(1)) |
|
|
|
. |
|
|
|
<p>[xss link](file:///123)</p> |
|
|
|
<p>![xss link](javascript:alert(1))</p> |
|
|
|
. |
|
|
|
|
|
|
|
|
|
|
|
Autolinks |
|
|
|
|
|
|
|
. |
|
|
|
[xss link]("><script>alert("xss")</script>) |
|
|
|
<javascript:alert(1)> |
|
|
|
|
|
|
|
<javascript:alert(1)> |
|
|
|
. |
|
|
|
<p><a href="%22%3E%3Cscript%3Ealert(%22xss%22)%3C/script%3E">xss link</a></p> |
|
|
|
<p><javascript:alert(1)></p> |
|
|
|
<p><javascript:alert(1)></p> |
|
|
|
. |
|
|
|
|
|
|
|
|
|
|
|
Image parser use the same code base. |
|
|
|
Linkifier |
|
|
|
|
|
|
|
. |
|
|
|
![xss link](javascript:alert(1)) |
|
|
|
javascript:alert(1) |
|
|
|
|
|
|
|
javascript:alert(1) |
|
|
|
. |
|
|
|
<p>![xss link](javascript:alert(1))</p> |
|
|
|
<p>javascript:alert(1)</p> |
|
|
|
<p>javascript:alert(1)</p> |
|
|
|
. |
|
|
|
|
|
|
|