[h1-2102] Wholesale - CSRF to Generate Invitation Token for a Customer and Move Customer to Invited Status
The Wholesale application lacked CSRF protection on the action that generates an invitation token for a customer and moves that customer to the invited status. An attacker could make a logged-in merchant visit a page that silently triggers this action, generating an invite link and changing the customer's status.
Originally disclosed on HackerOne
- Triaged in 26 hours
- Fixed in 50 days
- Paid in 5 days
- Disclosed after 10 months
Summary:
There is a CSRF vulnerability in the Wholesale application to generate an invitation token for a user and move that user to invited status.
Steps To Reproduce:
- Log in to Shopify and configure Wholesale
- Add a price list
- Add a customer with the tag
wholesale - Adjust the pricelist to include the user with the
wholesaletag - At this point you should see the user in the customer section (see figure 1)
- Now, navigate to
https://poc.rhynorater.com/wholesaleShopify/CSRF.html - Wait 30 seconds (for good measure)
- Refresh the customer page and note that the user is in the status of
invited
Figure 1

Supporting Material/References:
Impact
Move customer to invited status and generated invite link.
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 invitation endpoint accepted state-changing requests without a CSRF token or origin check, so a cross-site request was treated as legitimate.
Impact
A logged-in merchant could be tricked into moving a customer to the invited status and generating an invite link without intending to.
What the attacker needed
Merchant logged in to Wholesale; victim visits attacker page; customer tagged wholesale
How it was found
- Log in to Shopify and configure Wholesale
- Add a price list and a customer tagged wholesale, then include that customer in the price list
- Confirm the customer appears in the customer section
- Visit the attacker's proof-of-concept page while logged in
- Wait, then refresh the customer page and see the customer is now in the invited status
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.
CSRF (cross-site request forgery) is when a malicious website makes your browser send a request to another site where you are already logged in, without you meaning to. Here, a merchant who was logged in to the Wholesale app could be tricked into visiting an attacker's page, which quietly asked the app to invite a customer and create an invite link.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.