Web Security · Middle · Question 7 of 75

Users can upload SVG avatars that are served from your main domain. What's the risk?

Explanation

Serve uploads from a separate domain, sanitize or rasterize SVGs, and send Content-Disposition: attachment or a strict CSP for user files.

Further reading

Problem with a question

Web Security · Middle · question 7

Test yourself

Take the Web Security · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz