visit
CSRF (Cross-Site Request Forgery) is an attack that impersonates a trusted user and sends a website unwanted commands. This can be done, for example, by including malicious parameters in a behind a link that purports to go somewhere else:
<img src="//www.example.com/index.php?action=delete&id=123">
For users who have some permissions on
//www.example.com
, the <img>
element will execute action on //www.example.com
without their noticed, even if the element is not at //www.example.com
.There are many ways to prevent CSRF, such as implement , add secure token, etc.General knowledge