Skip to content
SSRF Write-up Intermediate

My Exceptional SSRF Finding

A PDF-generation endpoint accepted a base64-encoded URL in a request parameter and fetched it server-side without proper validation, allowing the attacker to make the server request internal addresses and read local files. The attacker used this to enumerate the server's filesystem, read configuration files and extract credentials, and also caused a temporary denial of service on the API.

nocley Follow

Published on medium.com

Friend Link

nocley, 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 PDF-generation endpoint decoded a user-supplied base64 URL and fetched it without validating the destination or restricting the URL scheme, so internal addresses and file:// paths were accepted.

Impact

The attacker could read local files and configuration data including credentials, and some requests caused the API to be unavailable for a while; the report does not claim remote code execution.

What the attacker needed

Access to the PDF endpoint; ability to send crafted requests

How it was found

  1. Observe the PDF-generation request containing a base64-encoded DocumentUrl parameter.
  2. Decode the value and notice it points to an internal IP address.
  3. Send a request with a Collaborator address to confirm the server makes outbound callbacks.
  4. Switch the scheme to file:// and confirm local file reads succeed.
  5. Automate directory and file enumeration with a script to clone the server's directory listing.
  6. Read configuration files and analyse downloaded JAR files to extract credentials.

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) bug happens when a website takes a web address from the user and fetches it on the server's behalf without checking where it points. Because the request comes from inside the company's network, the attacker can reach internal machines and, in this case, even read files on the server itself. The fix is to restrict which addresses and schemes the server is allowed to fetch.

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 nocley

View all

3 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.