
EC-CouncilWeb Application Hacking and Security
Domain 4Objective 1
Cross-Site Request Forgery (CSRF) - GET and POST Methods WAHS Practice Questions (Page 7)
Part of the Request Forgery Attacks domain, which makes up ~6% of our current practice bank. EC-Council does not publish an official question count, but from its 360-minute exam (~145–240 total, ~9–14 in this domain), expect 5–7 from this objective — we provide 37 practice questions to prepare you well beyond it. (estimate)
37questions here
8free pages
6concepts
Questions 31–35
- 31
A web application allows users to change their email address via a GET request to /profile/email?new=attacker@example.com. An authenticated user visits a forum where an attacker has posted a message containing an <img> tag pointing to that URL. The user's browser automatically requests the image. Which statement best describes why this is a CSRF vulnerability?
Select an answer first - 32
A web application uses a POST form to change a user's password. The form includes a hidden anti-CSRF token. An attacker wants to perform CSRF. Which condition would allow the attack to succeed?
Select an answer first - 33
A web application uses a custom header X-Requested-With to distinguish AJAX requests from normal form submissions. The server only processes POST requests that include this header. An attacker wants to perform a CSRF attack using an auto-submitting form. Why is this defense effective?
Select an answer first - 34
A web application uses a GET request to allow users to change their password: /user/password?new=... The application relies on session cookies and does not use CSRF tokens. An attacker wants to exploit this. Which of the following is the most effective way to trigger the CSRF attack?
Select an answer first - 35
A web application changes a user's email address via a POST request to /account/email with parameters email and confirm. The application relies on session cookies for authentication. An attacker wants to change the victim's email without the victim's knowledge. Which approach would be most effective?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by EC-Council. “WAHS” is a trademark of its owner, used for identification only.