Cyber Risks · PortSwigger Research

Lab: SSRF with whitelist-based input filter

Summary: PortSwigger's lab presents a stock check feature that fetches data from an internal system, and the task is to change the stock check URL to reach the admin interface at http://localhost/admin and delete the user carlos. The developer has deployed an anti-SSRF defense based on a whitelist input filter that the lab requires the user to bypass.

What you should know: The exercise shows that a whitelist filter alone did not stop the stock check feature from being redirected to an internal admin interface, so any server-side fetch that accepts a user-supplied URL is a path to internal systems until the filter is proven against bypasses.

Read the original at PortSwigger Research ↗

Topics
Vulnerabilities & Patching
Related