Question 300
A picture import URL is fetched by a server with access to internal service endpoints. Which result shows the selected action was suitable and effective?
Explanation
Correct Answer
A test URL targeting a prohibited internal endpoint is rejected. This answer directly addresses the described constraint. User-supplied destinations can redirect server trust to internal resources. Successful validation requires: A test URL targeting a prohibited internal endpoint is rejected.
Incorrect Answers
That approach concerns a different situation: a service accepts a filename that resolves through a symlink to a protected system path. Text-based path checks can be bypassed by filesystem indirection. The required result is that a test URL targeting a prohibited internal endpoint is rejected. The relevant evidence is: A test URL targeting a prohibited internal endpoint is rejected.
It would address a report generator uses user input inside its server-side template expression parser. The relevant reason in that case is: Template engines may execute operators or expose objects when input is treated as syntax. Here the required success condition is a test URL targeting a prohibited internal endpoint is rejected. The relevant evidence is: A test URL targeting a prohibited internal endpoint is rejected.
This result applies to a different case: A web handler includes a local log file by user-supplied filename. Local file inclusion may expose protected files or interpret unexpected content. It does not establish the present requirement, where a test URL targeting a prohibited internal endpoint is rejected. The relevant evidence is: A test URL targeting a prohibited internal endpoint is rejected.