Skip to content
SSRF Write-up Advanced

Burp, Bounce, and Break: How SSRF to Redis Gave Me the Keys to t

A preview API endpoint accepted external URLs and was vulnerable to blind SSRF, allowing requests to internal services. The attacker used the Gopher protocol to send commands to an internal Redis instance, injected an SSH key, and gained root access, then harvested credentials from .env files, Jenkins, and GitHub.

iski Follow

Published on infosecwriteups.com

Free Link🎈

Iski, on infosecwriteups.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 preview endpoint failed to validate or restrict the URL scheme and destination, allowing SSRF to internal services including Redis.

Impact

The attacker could execute commands as root, access sensitive credentials, and compromise the entire backend.

What the attacker needed

Access to the preview API endpoint; Internal Redis exposed to the preview service; Ability to send crafted URLs

How it was found

  1. Send a POST request to /generate-preview with a URL pointing to the cloud metadata address.
  2. Observe a timeout, then use a Burp Collaborator payload to confirm blind SSRF via DNS ping.
  3. Try internal IPs and ports (e.g., [redacted]:6379) until a different error indicates Redis is open.
  4. Use a Gopher payload to send Redis commands, including SET and CONFIG SET to write an SSH key to /root/.ssh/authorized_keys.
  5. SSH into the server using the injected key.
  6. Harvest credentials from .env files, Jenkins, and GitHub, and access a private repository.

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 preview service fetched any web address you gave it, even internal ones not reachable from the internet. By using a special protocol called Gopher, the attacker made the service talk to a database (Redis) and give them a way to log in as the server's administrator.

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 iski

View all

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