Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
EC-Council logo

EC-CouncilWeb Application Hacking and Security

Domain 7Objective 3

Arbitrary File Upload and Download WAHS Practice Questions (Page 5)

Part of the File Inclusion and Upload Attacks domain, which makes up ~7% of our current practice bank. EC-Council does not publish an official question count, but from its 360-minute exam (~145–240 total, ~10–17 in this domain), expect 3–6 from this objective — we provide 30 practice questions to prepare you well beyond it. (estimate)

30questions here
6free pages
10concepts

Questions 21–25

  1. 21expert · hard

    A security engineer is reviewing a file download feature that uses a 'file' parameter to specify the file to download. The application runs on a Windows server and uses the following code: File.ReadAllText(basePath + "\\" + filename). The engineer discovers that an attacker can use the parameter to read files outside the intended directory. Which of the following is the MOST effective mitigation?

    Select an answer first
  2. 22foundation · easy

    Which of the following is a common attack vector for arbitrary file uploads that targets other users rather than the server itself?

    Select an answer first
  3. 23foundation · easy

    Which of the following is a secure coding practice for file uploads?

    Select an answer first
  4. 24application · medium

    A web application allows users to upload files for sharing. The upload functionality does not restrict file types. An attacker wants to use this to distribute malware to other users. Which attack vector is most directly applicable?

    Select an answer first
  5. 25application · medium · select all that apply

    A security analyst is reviewing the attack vectors for an arbitrary file upload vulnerability in a web application. The application allows users to upload files without any validation. Which of the following are common attack vectors that the analyst should be concerned about? (Select all that apply.)

    Select an answer first
Finished these 5 questions?

Review the revealed explanations, or continue through the curriculum.

Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by EC-Council. “WAHS” is a trademark of its owner, used for identification only.