
EC-CouncilWeb Application Hacking and Security
Domain 3Objective 3
DOM-based XSS WAHS Practice Questions (Page 6)
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 32 practice questions to prepare you well beyond it. (estimate)
32questions here
7free pages
7concepts
Questions 26–30
- 26
How does DOM-based XSS differ from reflected XSS in terms of attack vector and execution location?
Select an answer first - 27
A developer is using browser developer tools to investigate a potential DOM-based XSS vulnerability. The code reads a value from location.hash and writes it to the page using document.write. Which developer tools feature is most useful for tracing the data flow and confirming the vulnerability?
Select an answer first - 28
A penetration tester is exploiting a DOM-based XSS vulnerability. The application uses the following code: var url = new URL(window.location.href); var param = url.searchParams.get('redirect'); location.href = param;. The tester wants to achieve the highest impact. Which payload is the most effective?
Select an answer first - 29
Which of the following is an effective mitigation against DOM-based XSS when you need to insert untrusted data into the DOM?
Select an answer first - 30
A development team is hardening a legacy web app that uses `eval()` to process a value from `location.hash`. The app must continue to support dynamic theming based on the hash value. Which mitigation is most appropriate?
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.