Skip to content
SSRF Write-up Beginner

Discovering a Blind SSRF Vulnerability in a PHP RSS Feed Parser

The PHP RSS feed parser fetched any user-supplied URL on the server without validation, so an attacker could make the server send requests to internal services or cloud metadata endpoints. The response was not returned to the user, making it a blind SSRF.

medium.com

Published on medium.com

During security testing and code review of a PHP-based RSS Feed Parser, I discovered a Blind Server-Side Request Forgery (SSRF) vulnerability.

Hemant Raj Bhati, 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

The application passed a user-controlled URL straight into a file-fetching function with no validation, allowlist or restriction on internal destinations.

Impact

An attacker could make the server interact with internal services, scan internal infrastructure, reach internal APIs and attempt to access cloud metadata services, though the response is not returned to the attacker.

What the attacker needed

Ability to submit a feed URL; attacker-controlled HTTP server

The fix

The application should validate user-supplied URLs, block internal IP ranges, restrict outbound requests and use an allowlist of trusted domains.

How it was found

  1. Host a test XML file on a local HTTP server.
  2. Submit the URL of that file to the RSS parser.
  3. Check the local server logs to confirm the application server made the request.

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 lets you type in a web address for an RSS feed, and the server goes off to fetch that address. Because it never checks where it is going, you can give it an address on the company's private network instead of a public feed. The server then makes that request for you, which is called server-side request forgery (SSRF).

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.