Potential SSRF and disclosure of sensitive site on *shopifycloud.com
A staging site for payment cancellations and refunds allowed sending POST requests to a user-supplied callback URL and returning the response, enabling server-side request forgery. An attacker could use this to fetch internal resources, though access to Google metadata was blocked.
Originally disclosed on HackerOne
- Triaged in 3 hours
- Fixed in 2 days
- Disclosed after 2 days
Note: I am reporting this after talking with @shopify-peteryaworski
Summary There is a staging/testing site for payment cancellations and refunds at shopifycloud.com. This site allows sending post request and fetching the response back to the user. This leads to SSRF because it allows fetching potential internal clients and servers.
Description
https://offsite-gateway-sim.shopifycloud.com/notification allows sending test request to a user supplied x_url_callback url. In such request it is allowed to submit Google metadata IPs and get a response back. Thankfully it seems that after the last SSRF report on Shopify, you guys have completely stripped the server from having any access to Google Metadata because for v1beta1 this server responds with This metadata api is not allowed in the metadata proxy. Additionally for the regular v1 it returns 403 because the header is missing. The only potential exploit here is that if there is any internal site only Google IP is able to access then someone can call that site and see its details.
Reproduction
- Go to https://offsite-gateway-sim.shopifycloud.com/notification and put http://metadata/computeMetadata/v1beta1/ as a test request.
Impact
SSRF. The repo for this is private so I am assuming this has to be private too?
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 accepted a user-supplied URL and made a server-side request to it without sufficiently restricting the destination, allowing access to internal resources.
Impact
An attacker could use the SSRF to fetch internal sites that are only accessible from Google IPs, though access to Google metadata was blocked by the server.
What the attacker needed
Access to the staging site
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.
Server-side request forgery (SSRF) is when a server can be tricked into making requests to places the attacker cannot reach directly, like internal systems. Here, a test payment site let users specify a callback URL and then fetched that URL, returning the response. This could let someone probe internal services, but the report notes that access to cloud metadata was blocked.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.