
EC-CouncilWeb Application Hacking and Security
Domain 4Objective 1
Cross-Site Request Forgery (CSRF) - GET and POST Methods WAHS Practice Questions (Page 5)
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 21–25
- 21
A penetration tester is assessing a web application that uses GET requests for state-changing actions and relies on SameSite=Lax cookies. The tester wants to demonstrate a CSRF attack. Which approach would be most likely to succeed?
Select an answer first - 22
A web application uses a CSRF token stored in a cookie and also requires the token in a custom header for AJAX requests. The application also accepts form submissions without the header. An attacker crafts an auto-submitting form. Why does this attack succeed?
Select an answer first - 23
A company is hardening a legacy web application that uses session cookies without the Secure flag. The application has both GET and POST state-changing endpoints. The team wants to minimize user disruption while adding CSRF protection. Which approach best balances security and usability?
Select an answer first - 24
A web application currently uses SameSite=Lax cookies and anti-CSRF tokens for POST forms. The team wants to add a new feature that allows cross-site embedding of a widget that performs GET-based actions. Which change would maintain CSRF protection while allowing the widget to work?
Select an answer first - 25
A banking application changes a user's transfer limit via a POST request to /account/limit with parameters amount and currency. The application relies on the session cookie for authentication and does not use any CSRF token. An attacker crafts an auto-submitting HTML form that posts to the banking site. What is the most effective defense to add to the application?
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.