The Server Is a Servant: SSRF in Labs
The article describes SSRF vulnerabilities in PortSwigger labs where the server fetches user-supplied URLs, allowing access to internal admin panels and bypassing blacklist and whitelist filters. An attacker could reach internal services and perform actions like deleting a user.
medium.com
Published on medium.com
Last time in The Server Is a Servant, I got an XML parser to fetch things on my behalf, and it ended on a single change: swap file:// for http:// and the parser stops reading disks and starts making requests from inside, as a trusted source. That was SSRF (Server-Side Request Forgery) arriving through the back door.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application fetches user-controlled URLs without validating the destination, and filters that check the URL string can be bypassed due to parsing differences or redirects.
Impact
An attacker could access internal admin panels and perform actions like deleting users, potentially leading to further compromise.
What the attacker needed
Access to a vulnerable lab; ability to send crafted requests
The fix
Validate the destination by resolving the hostname and checking the IP against an allowlist, reject private ranges, and do not follow redirects on server-side fetches.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
SSRF (Server-Side Request Forgery) is when a website takes a URL from you and fetches it from its own server. Because the server is inside the network, it can reach internal services that you cannot. This lets an attacker access admin panels or other internal systems that trust the server.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.