
EC-CouncilWeb Application Hacking and Security
Domain 3Objective 1
Reflected XSS WAHS Practice Questions (Page 5)
Part of the Cross-Site Scripting (XSS) domain, which makes up ~11% of our current practice bank. EC-Council does not publish an official question count, but from its 360-minute exam (~145–240 total, ~16–26 in this domain), expect 5–9 from this objective — we provide 37 practice questions to prepare you well beyond it. (estimate)
37questions here
8free pages
5concepts
Questions 21–25
- 21
A web application has a reflected XSS vulnerability in a 'redirect' parameter that is used to construct a URL for a client-side redirect. The application currently uses a blacklist that blocks 'javascript:' and 'script'. An attacker bypasses the blacklist by using 'data:text/html,<script>alert(1)</script>'. Which mitigation would be most effective?
Select an answer first - 22
In a typical reflected XSS attack, where is the malicious payload placed?
Select an answer first - 23
A development team is remediating a reflected XSS vulnerability in a legacy application. The application is built with a server-side template engine that automatically HTML-encodes variables. However, the vulnerability exists because a developer used the 'raw' filter to output a parameter without encoding. The team wants to fix the vulnerability while minimizing changes to the application's functionality. Which approach is most appropriate?
Select an answer first - 24
An attacker is crafting a reflected XSS payload to steal a victim's session cookie. The application reflects the 'id' parameter in the response but does not set the HttpOnly flag on cookies. Which payload would be most effective?
Select an answer first - 25
A company's web application has a reflected XSS vulnerability in its search function. An attacker crafts a link that, when clicked, executes a script to send the user's session cookie to an attacker-controlled server. What is the most direct impact of this attack?
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.