HexBrain

Shopify · Report #1457471

Limited Privilege User Can Create Unauthorized Referrals on partners.shopify.com

Validstatus
mediumseverity
181upvotes
20 Mar 2025disclosed

Summary

A privilege escalation issue in Shopify's Partner Portal (partners.shopify.com) allowed users without View referrals permission to create POS leads by directly accessing the lead creation URL. While the interface blocked unauthorized users from the referrals page, the backend API lacked proper authorization checks, enabling users to bypass restrictions and submit referrals without proper permissions.

How it was found

Summary

I have been working on the partner web portal and have noticed the referrals feature contains an issue where a user with limited privileges can create referrals in an unauthorized manner.

Steps to Reproduce

First you must authenticate with an administrator user and then invite another with limited privileges

{F1587397}

You may notice that the invited user does not have any privileges on the referral functionality.

When you authenticate with the user with limited privileges and then go to the referral functionality

https://partners.shopify.com/partner_id/referrals/

███████

You may notice that the user does not have the appropriate privileges to access this functionality.

Now, when the administrator accesses this same functionality.

███

It can be seen that the administrator can do several things, including Submit a POS Lead. Entering this url generates the following endpoint:

https://partners.shopify.com/partner_id/partner_leads/pos

In this way if the user with limited privileges accesses this URL.

█████

Instead of getting an error, the user can create a new POS Lead within the referrals. By completing the information.

████

It is observed that he was able to complete it with success.

Thanks.

Impact

Through this vulnerability, an attacker can bypass the implemented restriction in order to perform an action without authorization.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original