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.

Certifications & exams

Which exam comes next?

You can already practise for 60 exams, and 7 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications