CY.II · CySA+ CS0-004 practice question

A web application allows authenticated users to submit a profile bio that is saved in the database and rendered unescaped to every visitor who views the profile. Which vulnerability is present?

Choose one answer
Check answer and explanation

Correct answer: Persistent (Stored) Cross-Site Scripting (XSS)

Explanation

Stored (persistent) XSS occurs when malicious script input is saved on the server and executed in the browsers of subsequent visitors.

Common trap

Stored (persistent) XSS occurs when malicious script input is saved on the server and executed in the browsers of subsequent visitors.

Source: Original unofficial practice; not an official CompTIA exam item
Checked against the cited text on 2026-11-30.

Report an error in this question