🔐Cross-Site Request Forgery (CSRF)
Also known as CSRF, XSRF, Session Riding
An attack that tricks your browser. It sends a request you never meant to send.
Think of it like
Think of it like a trick. Someone hides a cheque under a card, and you sign it.
Example
Jack is logged in to his shop admin. He opens a link from an email, and a hidden form on that page changes his account email to the attacker's.
Why it matters
It turns your own login against you. Any action a user can do by a click can be forged this way.
Definition
Common mistake
Key takeaways
- 1Your browser is tricked. Not your password stolen.
- 2Cookies ride along. So it looks like you.
- 3Tokens and SameSite. The usual fix.