Attacks and Exploits

A tester plans a forged-request page that changes the email address on an account-settings form. Which three conditions must hold for the attack to work? (Choose three.)

Choose 3 answers

Show the answer

Correct answersA. The victim is logged in when the attacker's page loads in their browserC. The app identifies the user only by a cookie the browser sends automaticallyD. The request carries no unpredictable token that the attacker cannot know

AWhy this is right: The forged request only carries credentials if the victim's session is active when the page loads.

BWhy not this: CSRF works without ever seeing the cookie; reading it would be session hijacking or XSS, not a requirement here.

CWhy this is right: Automatic cookie attachment is what lets a forged cross-site request be treated as authenticated.

DWhy this is right: Without a validated anti-CSRF token, the attacker can build a complete valid request in advance.

EWhy not this: CSRF is cross-site by design; the forged page can be served from any domain the attacker controls.

CSRF abuses the browser's automatic cookie sending: the victim must have an active session, and the app must not require a secret per-request token. The attacker never needs to read the cookie; that is session hijacking. The forged page can sit on any domain, since the browser sends the cookie regardless.