Skip to content
SSRF Disclosed report Beginner

Remote file Inclusion - RFI in upload

The photo-crop page accepted a full URL in its 'url' parameter and fetched the image from that address, so a user could make the server load an image from any external site. The reporter calls this remote file inclusion, though the text only shows an image being pulled from another domain.

coolboss Follow

Originally disclosed on HackerOne

  • Disclosed after 39 days

Hello,

Everysite has a RFI vulnerability. Everysite i.e *.slack.com is having this vulnerability.

Proof of concept / Steps to Reproduce :

  1. Sign in to your account on slack eg. I signed in https://pran3hiva.slack.com
  2. Now, go to 'Change photo'. i.e https://pran3hiva.slack.com/account/photo
  3. Now, select file to upload.
  4. Click on upload image.
  5. You will be redirected to 'Crop Photo'.
  6. Note the url

eg. https://pran3hiva.slack.com/account/photo?url=https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fslack-files2%2Favatar-temp%2F2014-05-30%2F2364428212.jpg

Note the 'url' parameter.

  1. Change it to desired.
  2. I changed it to --> https://pran3hiva.slack.com/account/photo?url=https://www.google.co.in/images/srpr/logo11w.png

Now, image from site will be loaded.

Hence, RFI :D I have attached 2 screen-shots. POC. Hope, you patch this one. :)

If you have any questions you may ask me.

Thank You, Pranav

Attachments

rfi_poc.png
rfi_poc.png From the original on HackerOne
rfi_poc2.png
rfi_poc2.png

The original report as published on HackerOne, by coolboss. 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 crop page trusted a user-supplied URL and fetched the image server-side without restricting it to the site's own storage.

Impact

An attacker could make the site load an image from an arbitrary external address; the text only demonstrates loading a public image.

What the attacker needed

A Slack account; ability to edit the url parameter

How it was found

  1. Sign in and open the 'Change photo' page.
  2. Choose a file and upload it.
  3. On the crop screen, note the url parameter in the address.
  4. Replace that parameter with the address of an image on another site.
  5. Observe that the image from the other site is loaded.

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.

On the crop screen the picture's address is in the web link. That address could be swapped for another site's image address, and the image from that site would be loaded.

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 coolboss

View all

13 more disclosed reports, best first.

More from Slack

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.