← All topics
Quiz: Secure File Uploads: questions with answers
10 questions, each with the answer and a short explanation.
Take the timed quiz + get a certificate →- Q1. Why is checking only the Content-Type header of an upload not safe?
- Q2. What is a web shell?
- Q3. What does this print? (code)
- Q4. What are magic bytes?
- Q5. What does this print? (code)
- Q6. Why should an uploaded file be saved under a new random name?
- Q7. Why store uploads outside the web root?
- Q8. Why is accepting SVG images from users risky?
- Q9. What does the header Content-Disposition: attachment do?
- Q10. Why is an extension allowlist better than blocking .php?