Skip to content
SSRF Write-up Intermediate

When a Proxy Becomes a Spy: Hunting an SSRF That Led Straight Into the Server Room

A WordPress AJAX proxy endpoint accepted a user-controlled URL and fetched it server-side, allowing requests to localhost and internal services. The attacker could enumerate internal ports and read the Apache server-status page, exposing live request data.

yogeshbhandage Follow

Published on medium.com

Back again with another write-up, and this one’s a personal favorite because the bug didn’t come from hours of manual clicking — it came from my own tool quietly waving a little flag going “psst… hey… you might wanna look at this one.” 🚩

Yogesh Bhandage, 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 proxy endpoint did not validate or restrict the destination URL, allowing requests to internal addresses such as localhost.

Impact

The SSRF allowed access to internal services, port enumeration, and disclosure of sensitive live request data from the Apache server-status page, potentially serving as a launchpad for further attacks.

What the attacker needed

Access to the vulnerable endpoint; ability to send HTTP requests

The fix

The proxy should use an allowlist of permitted external domains and block internal IP ranges after DNS resolution, or be removed if not essential.

How it was found

  1. Find a WordPress admin-ajax.php request with an action parameter set to proxy and a url parameter.
  2. Point the url parameter to an attacker-controlled domain and confirm the server fetches it.
  3. Point the url parameter to localhost port 80 and observe the response from the internal service.
  4. Point the url parameter to a closed port and note the different response, enabling port enumeration.
  5. Fuzz internal paths via the proxy and discover the Apache server-status page.
  6. Request the server-status page through the proxy to view live internal request data.

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 let it fetch other web pages for you, but it did not check where it was fetching from. An attacker could tell it to fetch pages on the same server that are normally hidden from the internet, like a status page showing internal activity.

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.