Question 190
A plugin upload endpoint permits executable scripts to be stored inside a public web root. Which method should the assessment team select for this precise requirement?
Explanation
Correct Answer
Require extension, content, storage, and execution-policy controls. This answer directly addresses the described constraint. File upload handling must prevent attacker-controlled server-side execution. Successful validation requires: A harmless executable test file is stored inertly or rejected.
Incorrect Answers
It would address a web handler includes a local log file by user-supplied filename. The relevant reason in that case is: Local file inclusion may expose protected files or interpret unexpected content. Here the required success condition is a harmless executable test file is stored inertly or rejected. The appropriate action is: Require extension, content, storage, and execution-policy controls.
This action applies to a different case: A search endpoint concatenates raw query text into SQL statements. Data must not be interpreted as SQL syntax during query construction. It does not establish the present requirement, where a harmless executable test file is stored inertly or rejected. The appropriate action is: Require extension, content, storage, and execution-policy controls.
That relates to a different issue: A customer message displays unsanitized HTML that executes inside another user's browser. Untrusted content can cross the browser's code/data boundary. That is not a direct remedy for the requested outcome: A harmless executable test file is stored inertly or rejected. The appropriate action is: Require extension, content, storage, and execution-policy controls.