[h1-2102] Partner's team member with no permission can retrieve services financial data
A staff member with no permissions could query a GraphQL endpoint to retrieve services financial data, which should be restricted by the View financials permission. The attacker could access earnings amounts without authorisation.
Originally disclosed on HackerOne
- Triaged in 4 days
- Fixed in 26 days
- Paid in 5 days
- Disclosed after 2 months
Details
Unfortunately, I wasn't able to properly validate the following report as I could not get access the my partner's services option (event is ending in a few hours) and that access is manually given (https://help.shopify.com/en/partners/selling-services). However, given the observed behaviour, I assume there's a high probability of this being a missing permission check.
Within a partner's organization, financial datas are gated by the View financials permission. However, I observed that a staff with no permission is able to retrieve Services financial.
Steps to reproduce
Partner's organization owner
- Create a Partner's account on https://partners.shopify.com
- Invite a team member with no permissions (go to Teams > Invite staff member, select no permission and complete the invite)
Partner's staff member with no permission
- Accept the invite and log-in to the partner's dashboard
- In the upper right corner, click on the notification bell image and intercept the GraphQL request being made to https://partners.shopify.com/:id/api/graphql
- Update the payload to the following:
{
"query":"{ serviceMetrics { totalEarnings { amount } } }"
}
As a result, you will be returned the financial data:
{
"data":{
"serviceMetrics":{
"totalEarnings":{
"amount":"0.0"
}
}
}
}
Assuming that this property should be gated by the View financials permission, I should have received an access denied there instead of an amount (being 0.00 in my case as there's no data).
Impact
Staff with no permissions, specifically the View financials is able to access Services financial data
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 GraphQL resolver for serviceMetrics does not verify that the requesting staff member has the View financials permission.
Impact
A staff member without the View financials permission could access services financial data, though the reporter could not fully validate due to lack of access.
What the attacker needed
A partner organisation account; A staff member with no permissions
How it was found
- Create a Partner account and invite a team member with no permissions.
- Accept the invite and log in as the staff member.
- Intercept the GraphQL request made when clicking the notification bell.
- Change the query to request serviceMetrics totalEarnings amount.
- Observe that financial data is returned instead of an access denied error.
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.
In a partner organisation, some financial information is supposed to be visible only to staff who have been given a specific permission called 'View financials'. The report shows that a staff member without that permission could still ask the system for the total earnings from services and get a number back. This is a missing permission check.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.