Skip to content
SSRF Write-up Intermediate

SSRF reading local files from downnotifier server

The DownNotifier website monitoring tool accepted a user-supplied URL and fetched it server-side without proper validation, allowing an attacker to make the server request internal addresses and read local files. By using a redirect to a file URI, the attacker could retrieve sensitive files from the server.

Dr.FarFar Follow

Published on openbugbounty.org

Hello guys, this is my first write-up and I would like to share it with the bug bounty community, it’s a SSRF I found some months ago.

Dr.FarFar (@3XS0), on openbugbounty.org

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 application did not properly validate or restrict the URL scheme and destination before making server-side requests, allowing redirects to file:// URIs.

Impact

An attacker could read local files from the server, potentially exposing sensitive information.

What the attacker needed

A free account; ability to host a PHP file on own domain

How it was found

  1. Enter a URL pointing to an internal service (e.g., http:[redacted]:22) in the 'Website URL' field.
  2. Select the option 'When the site does not contain a specific text' and enter any random text.
  3. Submit the request and wait for email alerts; the second email contains the server's response as an HTML file.
  4. Host a PHP file on your own domain that redirects to a file:// URI using the Location header.
  5. Register a new monitor with the URL of your PHP file, using the same text condition.
  6. Receive an email with an HTML file containing the contents of the local file.

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 server-side request forgery (SSRF) happens when a website lets you give it a web address and it fetches that address for you. If the site does not check the address carefully, you can ask it to fetch internal addresses or files that only the server can see, and the site may show you the result.

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.