Skip to content
SSRF Write-up Beginner

SSRF to Internal Port Scanning on Self-Hosted Platform

The webhook feature of a self-hosted platform allowed the server to make requests to arbitrary internal IP addresses, enabling an attacker to scan internal network ports. The author confirmed this by directing the webhook to localhost and other internal IPs and observing responses.

medium.com

Published on medium.com

Free Artices

JEETPAL, 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 webhook URL was not validated against internal or private IP ranges, allowing server-side requests to arbitrary destinations.

Impact

An attacker could map internal services by scanning open ports, potentially leading to privilege escalation or access to cloud metadata endpoints if applicable, though the author could not access metadata directly.

What the attacker needed

Access to the webhook feature; ability to set a custom webhook URL

How it was found

  1. Enter a webhook.site URL in the webhook feature and observe the outbound request.
  2. Replace the external URL with an internal IP such as [redacted] and confirm the server processes it.
  3. Use a script to probe common ports on internal IPs like [redacted] and 192.168.1.1.
  4. Observe open and closed port responses to map the internal network.

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 webhook is a feature where a server sends data to a URL you provide. Here, the server did not check where it was sending data, so it could be tricked into sending requests to internal addresses that are normally hidden. This let the author probe which internal ports were open, like knocking on doors inside a private building.

What is SSRF?

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

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.