Skip to content
SSRF Write-up Intermediate

Who Needs VPN?? SSRF Already inside

An unauthenticated API endpoint accepted a user-supplied URL and fetched it server-side, allowing an attacker to make requests to internal hosts. The attacker could reach a firewall admin panel, a network management port, and a database port, and could map the internal subnet.

youssefmohamedsaadhelal1214 Follow

Published on medium.com

It was past midnight. The kind of hour where the world goes silent and your terminal glow feels like the only light left.

Tyrion404, on medium.com

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 server-side HTTP client accepted any user-supplied URL without validating or restricting the destination host.

Impact

An unauthenticated attacker could reach internal services including a firewall admin panel, a network management port, and a database port, and could enumerate the internal subnet; the report notes the endpoint may have been taken offline or patched.

What the attacker needed

No authentication; no rate limiting; network access to the API

The fix

The endpoint should be fixed by validating and restricting the swaggerUrl parameter to allowed external hosts, or by removing the server-side fetch feature.

How it was found

  1. Send a request to the endpoint with a URL pointing to a controlled external server.
  2. Observe DNS and HTTP callbacks from the target server, confirming out-of-band SSRF.
  3. Change the URL to an internal address and observe the response containing internal content.
  4. Use differences in responses to infer open ports and map the internal subnet.

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 website had a feature that fetched a web page from a link you gave it. The problem was it did not check where that link pointed, so someone could ask it to fetch pages on the company's private internal network instead of the public internet. That let an outsider see internal systems they should never reach.

What is SSRF?

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

More by youssefmohamedsaadhelal1214

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.