← 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?
- A.SVG files are always too large
- B.SVG cannot be displayed in browsers
- C.SVG is XML that can contain script, which runs like stored XSS if opened on your domain
- 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 →