CS Fundamentals Trainer · JavaScript · Security

A search page's server reads the q query parameter and writes it unescaped into the HTML response as You searched for: .... An attacker…

A search page's server reads the `q` query parameter and writes it unescaped into the HTML response as `You searched for: ...`. An attacker emails victims a crafted search link. Which kind of XSS is this?

  1. Stored XSS
  2. DOM-based XSS
  3. Reflected XSS
  4. Self-XSS

Difficulty: easy

Answer this question

Related questions