When the main app is clean, go count the URL fetchers
An import-from-URL feature on the production backend fetched user-supplied URLs without filtering the destination address, only restricting scheme and port. An authenticated attacker could make the server connect to internal hosts on allowed ports and read back their reachability and HTTP status, enabling internal network mapping and service fingerprinting.
Published on dubcrabsec.medium.com
There’s a trap in testing a polished product. You hammer the core flows, the auth is tight, the obvious injection points are all handled, and you quietly conclude the whole target is hard.
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
Impact
An authenticated user could map internal hosts on allowed ports and fingerprint services via reachability and HTTP status, rated around Medium; it is not RCE or a data dump, and the text advises confirming one private host and stopping.
What the attacker needed
An authenticated account; access to an import-from-URL feature; a collaborator server you control
The fix
The fetcher should filter the destination address, not just the scheme and port, so internal hosts cannot be reached.
How it was found
- Identify the import-from-URL feature that makes the backend fetch a supplied link.
- Send a non-HTTP scheme and observe a clean rejection, confirming the fetch path is reached.
- Send a disallowed port and observe a port-not-allowed response, confirming a port allowlist exists.
- Point the endpoint at several internal destinations and compare the distinct responses (upstream status, generic failure, port blocked).
- Point the fetcher at an out-of-band collaborator and confirm the inbound request arrives.
- Check the source IP of the collaborator hit and confirm it belongs to the target's ASN.
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.
A server-side request forgery (SSRF) bug happens when a website takes a link from you and asks its own server to fetch it. If the server does not check where that link points, an attacker can make it visit internal machines that outsiders cannot reach. Here the feature only checked the link type and port, not the destination address, so internal hosts could be probed.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.