Skip to content
SSRF Write-up Intermediate

How I Found My First Two SSRF CVEs

Both open-webSearch and PromptHub had SSRF filters that failed to block private IPv6 addresses written in alternative forms, allowing an attacker to make the server fetch internal resources. In open-webSearch, no authentication was required, so anyone on the network could trigger the fetch; in PromptHub, an authenticated user could do so.

medium.com

Published on medium.com

A week ago, I had zero CVEs to my name. Today I have two.

Shmulik Cohen, 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 filters used string pattern-matching on IPv6 addresses instead of parsing and canonicalising them, so equivalent representations of private addresses bypassed the checks.

Impact

An attacker could make the server fetch internal resources, including cloud metadata credentials, potentially leading to credential theft; open-webSearch required no authentication, while PromptHub required an account (though registration could be open).

What the attacker needed

Open-webSearch: network access, no auth; PromptHub: authenticated account (registration may be open)

The fix

The fix was to stop pattern-matching strings and instead parse the address with a real IP library, canonicalise it, and then check if it is in a private range.

How it was found

  1. Identify the URL-fetching feature and its private-IP filter.
  2. Craft a URL with an IPv6 address in an alternative form that the filter does not recognise as private.
  3. Send the request to the server, which fetches the URL and returns the response.

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 a request to a location the attacker chooses, such as an internal service. Here, the filters meant to block private addresses were fooled by different ways of writing the same IPv6 address, so the server could be made to fetch internal resources.

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.