Skip to content

Instantly share code, notes, and snippets.

@tam7t
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save tam7t/6605b3043de6c20807b1 to your computer and use it in GitHub Desktop.
Save tam7t/6605b3043de6c20807b1 to your computer and use it in GitHub Desktop.
XSS!?!
<html>
<head>
<title>title</title>
<script>
var someHtmlString = "</script><script>alert('hi!');</script><script>";
</script>
</head>
<body>
<h1>this is a test</h1>
<p>did it work?</p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment