Threats, Vulnerabilities, and Mitigations

Web server logs show requests to a file-download page that ask for system files outside the web root, such as /etc/passwd. Which three controls best mitigate this? (Choose three.)

Choose 3 answers

Show the answer

Correct answersA. Map file requests to server-side identifiers instead of raw pathsC. Run the web service under a low-privilege account with limited file accessF. Canonicalize and validate requested paths against an allowlist

Path validation, least-privilege file access and identifier mapping stop or limit requests that escape the web root. Parameterized queries are tempting, but they only defend against injection into database queries.