Skip to content
SSRF Disclosed report Intermediate

Fetching external resources through svg images

An SVG image uploaded as an app icon could reference external resources, causing the server to fetch them. An attacker could use this to make requests from Shopify's servers to a server they control.

detroitsmash Follow

Originally disclosed on HackerOne

  • Triaged in 2 hours
  • Fixed in 12 days
  • Paid in 18 days
  • Disclosed after 19 days

Summary by the researcher

Moving on :)

The report

Hi,

I found the exactly same bug #97501 at https://app.shopify.com/services/partners/api_clients/<APP-ID> when uploading the svg image on app icon.

###Steps to reproduce it

  • Make a new app at https://app.shopify.com/services/partners/api_clients
  • Goto app setting https://app.shopify.com/services/partners/api_clients/<APP-ID>
  • Now upload the attached svg image and change the xlink with your owner.
  • Save changes and check your server log.
Screenshot_from_2016-06-02_22_57_08.png
Screenshot_from_2016-06-02_22_57_08.png From the original on HackerOne

Thanks

The original report as published on HackerOne, by detroitsmash. 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 application allowed SVG uploads and rendered or processed them server-side without blocking external resource references.

Impact

The server could be made to send a request to an attacker-controlled host.

What the attacker needed

A Shopify partner account; ability to upload an app icon

How it was found

  1. Create a new app in the partner dashboard.
  2. Open the app settings page.
  3. Upload a crafted SVG image as the app icon and set its external link to a server you control.
  4. Save the changes and check your server logs for a request from Shopify.

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.

An SVG image uploaded as an app icon could contain a link to an outside file, and the server may fetch it, letting the uploader see the request in their logs.

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 detroitsmash

View all

3 more disclosed reports, best first.

More from Shopify

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.