SSRF by encoding
A parameter contained an encoded URL that the server decoded and used to make a request, leading to a blind SSRF. An attacker could make the server interact with an external domain they control, though no response was returned.
medium.com
Published on medium.com
Hey Everyone, I’m Pratik Pohankar a security researcher and recently, while assessing a bug bounty target, I identified a Blind SSRF vulnerability that demonstrated server-side interaction with an external domain under my control. Although the application did not return the response directly, out-of-band interactions…
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 decoded a user-supplied value containing a URL and then made a server-side request to it without validating or restricting the destination.
Impact
The server could be made to send requests to an attacker-controlled domain, which could be used to probe internal networks or services, though the application did not return the response directly.
What the attacker needed
Ability to send a crafted request with an encoded URL; attacker-controlled external server to receive requests
How it was found
- Notice a request parameter with a long encoded value.
- Decode the value and see that it contains a URL.
- Modify the encoded value to point to an external domain under your control.
- Observe out-of-band interactions confirming the server processed the URL.
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.
The application took a value from the user that looked like scrambled text, decoded it, and found a web address inside. It then asked the server to visit that address without checking if it was safe. This is called blind SSRF because the attacker cannot see the response, but they can still tell the server made the request by watching their own server logs.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.