OWASP Risks for LLM Apps · Question 4 of 12
A web app displays a chatbot's HTML output in the browser without any checks. What is the main risk?
1 answer is correct. Easy Created with AI
Show answer
Answer
- B Cross-site scripting: injected script code runs in users' browsers
Explanation
Model output must be treated like user input: encode or sanitise it before displaying or processing it further. Otherwise the app becomes attackable through the model.