H1514 Extract information about other sites (new sites) through Affiliate/Referral pages
A referral partner could see more information than intended about merchants they referred, including store status, name, email, phone number and store events. An attacker could set a referral cookie on a victim's browser by embedding a referral link as an image, then view that information once the victim signed up.
Originally disclosed on HackerOne
- Triaged in 4 days
- Fixed in 13 days
- Paid in 8 days
- Disclosed after 13 months
Summary by the program
@rijalrojan found a problem where a referral partner was able to view more information than expected about their referred merchants. We addressed this issue by removing access to this information in our affiliate portal.
The report
NOTE! Thanks for submitting a report! Please replace all the [square] sections below with the pertinent details. Remember, the more detail you provide, the easier it is for us to triage and respond quickly, so be sure to take your time filling out the report!
Summary:
This bug is based on a really interesting behavior that I noticed when testing the referral pages. More information on this is in the Description section.
Description:
Shopify provides its user base with Shopify Affiliate feature. This allows company/users to share their referral link and gain bonuses/commission if websites sign up with this. I noticed that this can be easily exploited to get mass information.
Shopify referral links look like this: https://shopify.com/?ref=nsa. After a user visits that page, a cookie is created with the name source and the value nsa. This helps to identify the referee. All this process is done through a GET request which makes the attack really easy. The only think an attacker now has to do is embed the link as an image on their page. Once that is done, a cookie will be set on victim's Shopify page.
After that, at any time if the victim decides to sign up for Shopify, their store will be added as a referral store. Once the store is added as a referral store, the attacker can see the following information: Status of the store, information (name, email and phone number) as well as any events that happen on the store (store events). Additionally because the attacker is a referee, they also get the 200% bonus.
Initially, I thought this was hard to exploit but considering the fact that all you need to do is embed your referral link as an image to set the cookie, I don't think exploiting this will be hard. You can specifically use these attacks at locations that are more prone to use Shopify. For example, Shopify recently opened a space in LA that allows new and experienced Shopify store managers to come together and help each other. These places will likely have high number of registration.
Steps To Reproduce:
(Add details for how we can reproduce the issue)
- If you go https://api.securify.network/shopify.html and then register a Store, I should be able to see the store detail on my Referral page.
Impact
DIsclosure of store events and store information.
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 affiliate portal exposed merchant details and store events to the referring partner without limiting what that partner should see.
Impact
A referral partner could see store status, name, email, phone number and store events for referred merchants, and also received a bonus.
What the attacker needed
Attacker has an affiliate account; victim loads attacker's page with referral image; victim signs up for Shopify
The fix
The issue was fixed by removing access to this information in the affiliate portal.
How it was found
- Visit the provided page that embeds a Shopify referral link as an image.
- Register a store after the referral cookie has been set.
- Check the referral page as the affiliate to see the new store's details.
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.
When someone signs up to a service through a referral link, the referrer usually gets a small reward. Here, the referral system also let the referrer see private details about the new store, such as its name, email, phone number and activity. Because the referral link could be loaded as an image, a victim did not even need to click it for the cookie to be set.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.