What is Cross-site request forgery?
Also called: CSRF
The short answer
Cross-site request forgery tricks a logged-in user's browser into sending an unwanted request, such as changing an email address, to a site they trust.
Cross-site request forgery, explained
SameSite cookies and anti-CSRF tokens block it.
Questions people ask about Cross-site request forgery
What is Cross-site request forgery?
Cross-site request forgery tricks a logged-in user's browser into sending an unwanted request, such as changing an email address, to a site they trust.
Related terms
Cross-site scripting is an attack where malicious code is injected into a page and runs in other visitors' browsers, stealing sessions or data.
CookieA cookie is a small piece of data a website stores in the browser to remember something between visits, like a login or a cart.
Website securityWebsite security is protecting a site, its data and its visitors from attacks, through HTTPS, updated software, careful input handling, strong logins and backups.
SQL injectionSQL injection is an attack that slips database commands into form fields or URLs, letting an attacker read or change data the site never meant to expose.
Part of the Web Encyclopedia by Apex Flow Digital. Definitions are general knowledge, kept current, with no invented statistics.