CSRF
Also called: Cross-site request forgery, XSRF
Cross-site request forgery: another site makes the user's browser send a request to your app, with the user's cookies.
Definition
Browsers attach cookies to requests even when they start on another site. Apps defend with the SameSite cookie flag, CSRF tokens in forms and by never changing data through GET requests. Testers check the cookie flags and that every data-changing action uses POST, PUT, PATCH or DELETE.
In practice
GET /account/delete?confirm=yes deletes the account, so a hidden image on any web page could trigger it.
Learn it in context
Lessons that use this term.