What is a cross-site scripting (XSS) vulnerability?
- aA server crashing because a page sends far too many requests at once
- bA visitor tricking a site into serving an outdated cached copy of a page
- cAn attacker getting a victim's browser to run malicious script from a page✓
- dA slow network connection that makes a page's own scripts load in the wrong order and fail
Explanation:XSS means attacker-controlled script executes in the victim's browser in the context of a trusted site, letting it steal cookies/tokens, read the DOM, or act as the user. It is a client-side code-execution flaw, not a server crash (a) or a caching issue (b).