QUESTION 7 OF 10

What is XSS and why is generated content a potential risk?

Reveal the answer and explore the explanation.

07
MediumHigh priority

What is XSS and why is generated content a potential risk?

Answer
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 ↗

Last 30 min revisionHigh-yield interview Q&As