🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Secure File Uploads: all 10 questions

Quiz: Secure File Uploads · Question 8 of 10

Why is accepting SVG images from users risky?

Why is accepting SVG images from users risky?

  1. A.SVG files are always too large
  2. B.SVG cannot be displayed in browsers
  3. C.SVG is XML that can contain script, which runs like stored XSS if opened on your domain
  4. D.SVG files contain viruses by default
Answer & explanation

Correct answer: SVG is XML that can contain script, which runs like stored XSS if opened on your domain

Convert SVG to PNG, refuse it, or serve it as a download from a separate domain.

Can you get the rest right without peeking?

Take the timed Quiz: Secure File Uploads quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →