Security Operations

A malicious page makes a logged-in user's browser submit a transfer request to their bank using their session cookie. Which attack is this?

Show the answer

Correct answerA. Cross-site request forgery

AWhy this is right: The forged request rides on the victim's existing session cookie, which the browser attaches automatically.

BWhy not this: SSRF makes the server issue requests on the attacker's behalf; here the victim's browser sends the request.

CWhy not this: SQL injection alters database queries through unsanitized input; no query manipulation is described.

DWhy not this: XSS runs attacker script in the trusted site's page; here no script runs on the bank's site.

Cross-site request forgery abuses the browser automatically sending the victim's authenticated session cookie with a request the attacker triggered from another site. Cross-site scripting differs because it runs attacker script inside the trusted site's pages.