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.
- 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 :
- Sign in to your account on slack eg. I signed in https://pran3hiva.slack.com
- Now, go to 'Change photo'. i.e https://pran3hiva.slack.com/account/photo
- Now, select file to upload.
- Click on upload image.
- You will be redirected to 'Crop Photo'.
- Note the url
Note the 'url' parameter.
- Change it to desired.
- 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


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
- Sign in and open the 'Change photo' page.
- Choose a file and upload it.
- On the crop screen, note the url parameter in the address.
- Replace that parameter with the address of an image on another site.
- 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.