GISP · Question #347
Which of the following allows an attacker to enter malicious data into a Website?
The correct answer is A. Cross site scripting. Cross-Site Scripting (XSS) is the correct answer because it is a well-documented attack vector where an attacker injects malicious scripts (typically JavaScript) into a trusted website's input fields - such as comment boxes, search bars, or forms - which then execute in other…
Question
Options
- ACross site scripting
- BInline scripting
- CWindows PowerShell scripting
- DClient-side scripting
How the community answered
(55 responses)- A78% (43)
- B2% (1)
- C7% (4)
- D13% (7)
Explanation
Cross-Site Scripting (XSS) is the correct answer because it is a well-documented attack vector where an attacker injects malicious scripts (typically JavaScript) into a trusted website's input fields - such as comment boxes, search bars, or forms - which then execute in other users' browsers, potentially stealing cookies, session tokens, or redirecting users.
Why the distractors are wrong:
- B. Inline scripting is a legitimate HTML/CSS technique (e.g.,
<script>tags orstyleattributes) and describes where code runs, not an attack method. - C. Windows PowerShell scripting is a local system administration tool and has no direct role in web-based input attacks.
- D. Client-side scripting is a broad term for scripts that run in the browser (like JavaScript) - it's the mechanism XSS exploits, not the attack itself.
Memory tip: Think XSS = eXtra Sneaky Script - an attacker crosses the trust boundary between your site and its users by sneaking malicious code through input fields.
Topics
Community Discussion
No community discussion yet for this question.