Question 100
A service accepts a filename that resolves through a symlink to a protected system path. Which result shows the selected action was suitable and effective?
Explanation
Correct Answer
The resolved target outside the approved directory is denied. This answer directly addresses the described constraint. Text-based path checks can be bypassed by filesystem indirection. Successful validation requires: The resolved target outside the approved directory is denied.
Incorrect Answers
That approach concerns a different situation: a web scanner claims SQL injection because a quote produces an HTTP 500 response. Generic server errors do not prove attacker-controlled SQL execution. The required result is that the resolved target outside the approved directory is denied. The relevant evidence is: The resolved target outside the approved directory is denied.
That relates to a different issue: An app downloads files based on a path parameter that accepts parent-directory components. Path normalization and authorization must prevent escaping a file root. That is not a direct remedy for the requested outcome: The resolved target outside the approved directory is denied. The relevant evidence is: The resolved target outside the approved directory is denied.
This result applies to a different case: A theme installer accepts an external URL that is included into server-side code execution. Server execution should not import untrusted remote code. It does not establish the present requirement, where the resolved target outside the approved directory is denied. The relevant evidence is: The resolved target outside the approved directory is denied.