312-49 · Question #229
At what layer does a cross site scripting attack occur on?
The correct answer is B. Application. Cross-site scripting (XSS) attacks occur at the Application layer (Layer 7 of the OSI model). XSS exploits vulnerabilities in web applications by injecting malicious scripts into web pages that are then executed in a victim's browser. Because the attack targets the web…
Question
At what layer does a cross site scripting attack occur on?
Options
- APresentation
- BApplication
- CSession
- DData Link
How the community answered
(38 responses)- A3% (1)
- B89% (34)
- C3% (1)
- D5% (2)
Explanation
Cross-site scripting (XSS) attacks occur at the Application layer (Layer 7 of the OSI model). XSS exploits vulnerabilities in web applications by injecting malicious scripts into web pages that are then executed in a victim's browser. Because the attack targets the web application itself-manipulating how it processes and outputs user-supplied data-it is fundamentally an application-layer attack, not a lower-level network or data-link attack.
Topics
Community Discussion
No community discussion yet for this question.