Question 320
A follow-up assessment examines whether “Restrict server-side outbound destinations and validate URL schemes and redirects to mitigate SSRF.” addressed “A web endpoint takes a user-supplied URL and requests internal metadata services on the server's behalf.”. What evidence should the reviewer request?
Explanation
Correct Answer
The finding “Attempts to fetch prohibited internal metadata endpoints are denied and logged.” verifies the requested result of “Restrict server-side outbound destinations and validate URL schemes and redirects to mitigate SSRF.” in the situation “A web endpoint takes a user-supplied URL and requests internal metadata services on the server's behalf.”. It demonstrates the outcome instead of merely claiming the task was completed.
Incorrect Answers
This observation would verify “A file-download endpoint uses raw user path components and can reach configuration files outside its document root.”, not the particular condition “A web endpoint takes a user-supplied URL and requests internal metadata services on the server's behalf.”. It cannot independently confirm that “Restrict server-side outbound destinations and validate URL schemes and redirects to mitigate SSRF.” produced “Attempts to fetch prohibited internal metadata endpoints are denied and logged.”.
The measured result “Automated repeated-login tests trigger throttling and cannot bypass the required second factor.” does not match the outcome of “Restrict server-side outbound destinations and validate URL schemes and redirects to mitigate SSRF.” for “A web endpoint takes a user-supplied URL and requests internal metadata services on the server's behalf.” and instead belongs to the alternate problem “A web application allows unlimited login attempts against a privileged account without secondary verification.”.
Even if “Crafted external redirect targets are rejected while approved internal transitions function.” is correctly observed in “An application trusts unvalidated redirect URLs, enabling credential-like phishing redirects through its own domain.”, it would not demonstrate the required “Attempts to fetch prohibited internal metadata endpoints are denied and logged.” for the present response to “A web endpoint takes a user-supplied URL and requests internal metadata services on the server's behalf.”.