CND Application And Data Protection Practice Question
A security analyst is investigating a web application vulnerability and identifies that user input is reflected directly inside a JavaScript block without adequate sanitization, leading to execution in the victim's browser. What specific type of vulnerability is present?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
DOM-based Cross-Site Scripting (DOM XSS)
DOM-based Cross-Site Scripting (DOM XSS) occurs when an application contains client-side JavaScript that processes data from an untrusted source (the DOM) in an unsafe way, usually by writing the data back to the document.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Stored Cross-Site Scripting (Stored XSS)
Why it's wrong here
Stored XSS involves saving malicious payloads permanently in a database or backend storage.
- ✗
Server-Side Request Forgery (SSRF)
Why it's wrong here
SSRF involves forcing the server-side application to make HTTP requests to an arbitrary internal or external destination.
- ✓
DOM-based Cross-Site Scripting (DOM XSS)
Why this is correct
DOM XSS occurs when client-side script processes untrusted source data directly within the browser's Document Object Model.
- ✗
Reflected Cross-Site Scripting (Reflected XSS)
Why it's wrong here
Reflected XSS involves the server echoing malicious input immediately within an HTTP response.
About these practice questions
This CND question is part of Courseiva's 323-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official EC-Council exam blueprint
This CND practice question is part of Courseiva's free EC-Council certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CND exam.