What is XSS and why is generated content a potential risk?
Reveal the answer and explore the explanation.
07MediumHigh priorityWhat is XSS and why is generated content a potential risk?
Answer
MediumHigh priority
What is XSS and why is generated content a potential risk?
Answer
XSS executes attacker-controlled script in a user's browser when unsafe content is interpreted as code.
Practical example
Render model output as escaped text or sanitize allowed markup.
Reference: Further reading ↗