Threats, Vulnerabilities, and Mitigations
Which vulnerability lets an attacker inject script into a web page so that it runs in other users' browsers?
Show the answer
Correct answerC. Cross-site scripting
AWhy not this: SQL injection alters database queries on the server; it does not run script in other users' browsers.
BWhy not this: Directory traversal reads files outside the web root through path manipulation, not browser script.
CWhy this is right: XSS places attacker script into a page that victims' browsers then execute in the site's context.
DWhy not this: A buffer overflow overwrites memory by exceeding a buffer's size; it is not a web page script injection.
Cross-site scripting occurs when an application includes untrusted input in a page without sanitizing it, so the injected script executes in a victim's browser. SQL injection targets the database query, not the user's browser.