The SSRF I Almost Didn’t Report
The target's 'import from URL' feature fetched arbitrary URLs, and although the obvious AWS metadata address was blocked, an alternate representation of the same IP bypassed the filter. This allowed the server to fetch internal cloud metadata that should never be exposed.
medium.com
Published on medium.com
This is the story of a bug I almost threw away because I thought it was “nothing.” Lesson learned: verify before you dismiss. That “nothing” turned out to be an SSRF reaching internal cloud stuff.
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 URL filter only blocked the literal metadata IP string and did not normalise or validate alternate representations of the same address.
Impact
The server could be made to fetch internal cloud metadata, potentially exposing sensitive information, though the text does not detail what was actually retrieved.
What the attacker needed
Access to the import-from-URL feature
How it was found
- Point the import-from-URL feature at a listener to confirm the server fetches arbitrary URLs.
- Try the obvious AWS metadata address and observe it is blocked.
- Try alternate representations of the same metadata IP to bypass the filter.
- Observe the server fetching internal metadata.
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 server is tricked into making requests to places it shouldn't, like internal systems. Here, the image import feature let the server fetch any URL, and a filter blocked the obvious cloud metadata address, but a different way of writing the same address got around it. That let the attacker reach sensitive cloud information.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.