How I Landed My First $200 Bounty With One Unusual SSRF
A screenshot feature rendered user-supplied HTML in a headless browser with JavaScript execution, allowing server-side requests to internal services. The attacker reached an unauthenticated Prometheus metrics endpoint on loopback and used counter differences to prove cross-tenant data leakage.
medium.com
Published on medium.com
You find a place where the server fetches a URL you control. You get excited.
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 screenshot renderer executed untrusted JavaScript with network access and the internal metrics endpoint was exempt from the authentication gate applied to other routes.
Impact
An authenticated low-privilege user could read internal operational metrics that revealed other tenants' render activity and the service's replica topology, though no credentials or personal data were exposed.
What the attacker needed
A free authenticated account; ability to submit HTML content; no victim interaction
How it was found
- Submit HTML containing a script that changes visible text, then check the screenshot to confirm JavaScript runs before capture.
- Use fetch() inside the rendered page to request a URL and write the response into the page so it appears in the screenshot.
- Try cloud metadata addresses with the correct provider header; confirm they fail at the network layer.
- Sweep common loopback ports and note which return an HTTP status rather than a network failure.
- Request many internal paths plus a made-up path to see whether the 401 is a blanket gate; find /metrics returns 200 without authentication.
- Trigger one render, poll /metrics twice about 79 seconds apart, and diff counters to show other tenants' activity and multiple replicas.
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 website feature that turns your content into a picture was actually running a real web browser on the company's server. Because that browser could run JavaScript, the attacker made it fetch internal web addresses that outsiders normally cannot reach. One of those internal addresses exposed monitoring numbers, and by comparing two readings the attacker showed other customers' activity was included.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.