Low Privileged Staff Member Can Export Billing Charges
A staff member with no permissions could call a GraphQL mutation to export billing charges for a shop. The reporter could not confirm the export succeeded because they had no billing transactions, but the error response suggested the resolver searched for the invoice rather than denying access.
- Triaged in 6 days
- Fixed in 10 days
- Paid in 10 days
- Disclosed after 40 days
Summary by the program
@ash_nz reported an issue where a staff member without explicit permissions on a shop would be able to export a limited summary of charges made to that shop's billing account by Shopify and Shopify apps.
The report
Details
I'm not 100% sure about this because i don't have billing transactions on my account. However, from my experience on how Shopify backend respond, i think this is a valid finding just need confirmation from Shopify's security team.
A GraphQL mutation billingChargesExport can be used by a staff member with no permissions to export billing charges. The following is a sample request.
POST /admin/internal/web/graphql/core HTTP/1.1
Cookie: [REDACTED]
accept: application/json
X-CSRF-Token: [REDACTED]
Content-Type: application/json
User-Agent: PostmanRuntime/7.26.5
Host: [YOUR-SHOP].myshopify.com
Accept-Encoding: gzip, deflate
Connection: close
Content-Length: 303
{"query":"\r\n \r\nmutation BillingChargesExport($id:ID!,$exportFormat:ExportFormat){billingChargesExport(id:$id,exportFormat:$exportFormat){message userErrors{field message __typename}__typename}}\r\n","variables":{
"id": "gid://shopify/BillingInvoice/58138130",
"exportFormat":"EXCEL_CSV"
}}
The response i've got is the following.
{
"data": {
"billingChargesExport": {
"__typename": "BillingChargesExportPayload",
"message": null,
"userErrors": [
{
"__typename": "UserError",
"message": "Not found",
"field": null
}
]
}
},
"extensions": {
"cost": {
"requestedQueryCost": 10,
"throttleStatus": {
"restoreRate": 250.0,
"currentlyAvailable": 4990,
"maximumAvailable": 5000.0
},
"actualQueryCost": 10
}
}
}
I usually get access denied or something that indicates a privilege issue. However in this case i'm getting Not found which indicate that the resolver searched for the given BillingInvoice but could not find it. I can't confirm this from my side, hence reporting this.
Impact
Low Privileged Staff Member Can Export Billing Charges
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 the billing charges export mutation did not check the staff member's permissions before looking up the billing invoice.
What the attacker needed
A staff account with no permissions; a valid billing invoice identifier
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.
A shop has staff accounts with limited permissions. Normally, someone without billing permission should be blocked from exporting billing data. Here, the request was not blocked outright; it returned a 'not found' message, which hints the system looked for the invoice instead of refusing access.
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.