Skip to content
SSRF Disclosed report Intermediate

Reverse Proxy misroute leading to steal X-Shopify-Access-Token header

chaosbolt Follow

Originally disclosed on HackerOne

Bounty$1,000 Medium View original
  • Triaged in 4 days
  • Fixed in 4 days
  • Paid in 5 days
  • Disclosed after 5 months

Summary by the program

@ruvlol discovered that the /admin/api/graphql endpoint in Shopify admin was missing host validation, and would proxy to arbitrary hosts when the host header was modified. This could have allowed making POST requests with that path to internal services, or exposing the X-Shopify-Access token for the current user (which the client does not typically have access to). However, this token has the same access level as interacting normally with the graphql endpoint in admin for that session.

The report

Hello Shopify team! I found out that on /admin/api/graphql endpoint server fetches content of Host header value (${HTTP_Host} + /admin/api/graphql). If my own host was sent to server, request comes from ██████████or ██████████ (your google cloud cluster). Also I can grab all reverse proxy headers including X-Shopify-Access-Token.

example of such request in base64:

███

Also it returns response your server got on ${HTTP_Host} + /admin/api/graphql address

How to reproduce:

  1. POST /admin/api/graphql with Host pointing to external website
  2. As external website owner grab incoming headers.

Impact

SSRF, X-Shopify-Access-Token leakage

Attachments

responseleakage.png
responseleakage.png From the original on HackerOne

The original report as published on HackerOne, by chaosbolt. 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.

What is known

A medium-severity SSRF bug in your-store.myshopify.com. HackerOne made it public on 14 March 2019. It paid $1,000.

About SSRF

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

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

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 chaosbolt

View all

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