CS Fundamentals Trainer · JavaScript · Security
Put the steps of a classic CSRF attack in order, first to last.
- The bank's server sees a valid session and performs the transfer
- The browser attaches the bank's cookie to that request, as far as SameSite rules allow
- The evil page auto-submits a hidden form to `https://bank.example/transfer`
- The victim logs in to `bank.example`, which sets a session cookie
- The victim opens a page on `evil.example` in another tab
Difficulty: easy