Skip to content
SSRF Write-up Intermediate

The SSRF that Brought down a Server

A proxy endpoint on data.jij0.me accepted a user-supplied URL and fetched it server-side, allowing an attacker to render arbitrary pages under the site's origin and potentially steal data via CORS or execute reflected XSS. During testing, the attacker also triggered a JDBC lock that took the server down.

g30rgy th3 d4rk Follow

Published on crypt0g30rgy.github.io

Server-Side Request Forgery (SSRF) is a type of web vulnerability that allows an attacker to send a malicious request from a vulnerable server to another server or network service. The attack is performed by manipulating a server-side script to send a request to a different server or service, which can be controlled…

g30rgy th3 d4rk (@Crypt0g30rgy), on crypt0g30rgy.github.io

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 proxy endpoint did not validate or restrict the user-supplied URL, allowing requests to arbitrary external and internal destinations.

What the attacker needed

Attacker controls a domain to host files; victim visits a crafted proxy URL

The fix

The proxy endpoint should validate and restrict user-supplied URLs to an allowlist of permitted destinations.

How it was found

  1. Visit the proxy endpoint with a URL parameter pointing to example.com.
  2. Observe that example.com is rendered under the data.jij0.me domain.
  3. Host an HTML file containing XSS on a controlled domain.
  4. Use the proxy endpoint to load that HTML file, executing XSS in the data.jij0.me context.
  5. Host a CORS-stealing HTML file on a controlled domain.
  6. Use the proxy endpoint to load that file, stealing data from data.jij0.me.

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 proxy endpoint is a feature that lets a website fetch another page for you. Here, the site did not check which addresses it was allowed to fetch, so an attacker could make it load pages from anywhere, including malicious ones. That let the attacker run code in the site's context or read data meant for the site, and even crash the server.

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 g30rgy th3 d4rk

View all

7 more disclosed reports, 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.