Multiple choice

Which of the following is/are necessary to prevent vulnerabilities in file uploading on the web site?

  1. Prevent users from overwriting application files.

  2. Disable script execution in the upload directory.

  3. Ensure that the file extension matches the actual type of the file content.

  4. Prevent users from uploading problematic file types like HTML, CSS, JavaScript, etc.

  5. All of the above

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

All are the correct statements.