Threats & AttacksQuestion 20 of 100

A malicious script stored on a vulnerable web page runs in other users' browsers when they view it. This is:

a.SQL injection
b.CSRF
c.Stored cross-site scripting
d.Clickjacking

Explanation

Stored cross-site scripting (XSS) persists malicious script on the server so it executes in every visitor's browser. It can steal session tokens or perform actions as the victim. Output encoding and input validation prevent XSS.

Practice all 100 questions free — no signup required.

Related questions on this topic

Last reviewed: · editorial process

Sen Lin, PrepPass Founder · Verified against CompTIA Security+ (SY0-701) · How we review
Report