Most Shopify apps keep their data in a silo: one store, its rules, its customers. Planora is different. It is a large booking platform at planora.life, with a web app, iOS and Android apps and its own accounts for specialists and their clients. The Shopify app is only one part of it: it lets a store sell those specialists' time slots as products, on the same calendars and accounts the rest of the platform uses. Every place where a Shopify identity meets a platform identity is a place where one store can reach data that does not belong to it.

Planora's Shopify app is live with merchants. As with our audit of Catalog Guard, we ran exactly the process we sell as the Shopify App Source Code Scan. This article covers the Shopify side of the findings and how each one was fixed. Issues in the rest of the platform, such as its mobile sign-in and general dependency updates, were reported too but are left out here.

The short version

  • Critical: one compliance webhook could erase any account on the platform. customers/redact found the user by the email in the payload, from any store, and anonymized every account that had no specialist role. A free development store and one customer record with the victim's email were enough.
  • High: the App Proxy trusted the request body for the store. The signature covered store A, but a POST body naming store B made the backend create holds and read cart data in store B.
  • High: the storefront rate limit was one counter for the whole internet. Behind the App Proxy and Cloudflare, every visitor of every store had the same IP.
  • High: the embedded app let any store guess a specialist's password without limit, and a correct guess attached that specialist's calendars to the store.
  • High: webhook headers were trusted after the HMAC check, and a replayed billing webhook could switch Premium back on.
  • Medium and low: an internal API signature that did not cover the path, App Proxy signatures that never expired, personal data written to logs, and an Admin API client on an unsupported version.
  • What held up: webhook HMAC verification, store isolation in the embedded app's API, and the booking confirmation logic that ties hold tokens to the product actually paid for.

The app under test

Planora's Shopify integration has more moving parts than most apps:

The requested scopes are read_products, write_products, read_orders, read_validations, write_validations and write_app_proxy. Each one maps to calls the code makes.

How we ran the audit

The same four steps as every scan:

1. Secrets: Gitleaks over every commit on every branch, plus Trivy on the working copy. 2. Dependencies: OSV-Scanner and Trivy over composer.lock and every package-lock.json, then a check of which vulnerable code is actually reachable. 3. Static analysis: Semgrep with the standard PHP, JavaScript and OWASP packs, plus our custom Shopify rules. 4. Manual review: every Shopify route and its middleware, every webhook handler, the App Proxy and internal API signatures, store isolation in each query, the compliance webhooks, the proxy chain in front of the app, and scopes against the API calls in the code.

Everything ran locally. No code left the machine and no external scanning service was used.

What held up

Webhook HMAC. Every handler computes the signature over the raw body from $request->getContent() and compares it with hash_equals. An empty secret fails closed.

Store isolation in the embedded app. The internal API takes the store only from the signed request, never from a parameter. Calendars are checked against the store before any change, and mappings, holds and bookings are always looked up by store ID together with their own ID.

Booking confirmation. This is the part most booking apps get wrong, and Planora got it right. A hold token in a cart line could be copied from another product, but on orders/paid the backend checks that every token belongs to the mapping of the product and variant that was actually bought, confirms inside a transaction with a lock on the slot, and turns anything suspicious into a conflict with a rebooking link instead of a free booking.

Hold tokens. ULIDs with 80 bits of randomness and a short lifetime. Guessing one is not practical.

The embedded frontend. Every admin route authenticates through Shopify's library, which also sets frame-ancestors on HTML responses.

Finding 1: a privacy webhook that could erase any account

Severity: Critical.

Shopify sends customers/redact when a shopper asks a store to delete their data. The payload names the store, the customer's Shopify ID, their email and the orders to redact. Planora handled it like this:

// Before: the store's unverified email decides whose account is erased
$user = $this->users->findByEmail(strtolower($email));
// ... if the account has no specialist role or calendars
// and no Shopify bookings left, anonymize it

Two details made this critical. First, the lookup was by email across the whole platform, not within the store's own shoppers. Second, "no Shopify bookings" counted only Shopify bookings, so an ordinary planora.life client who had never touched Shopify passed every check.

Shopify does not verify the email on a customer record. Anyone can install an app on a free development store, so the attack needed no access to anything:

1. Install Planora on a development store. 2. Create a customer with the victim's email. 3. Request erasure of that customer's data from the Shopify admin.

Ten days later, Shopify delivers a genuine, correctly signed customers/redact. Planora found the victim's account by email and anonymized it: email replaced, sessions and tokens revoked, the paid subscription cancelled. Every check in the code passed. The webhook was real, and so was its signature. The only thing at fault was the assumption that an email from a store identifies a person on the platform.

The same assumption sat in the order flow. When a paid order arrived, the booking was attached to whichever existing account had the order email. A store could put bookings into anyone's account, and then use those bookings to reach the account through the privacy webhooks.

The fix:

  • An order email no longer leads to a platform account. Each customer of each store is booked on a separate stand-in client, found again on repeat orders by the store's own Shopify customer ID. Its login address is a placeholder that nobody can sign in with, claim or receive mail at.
  • The buyer's email and name from the order are kept on the booking itself as contact details, which is what the specialist needs to see.
  • customers/redact and customers/data_request find a shopper only by the store's customer ID and the order IDs in the payload, and only among that store's bookings. The email in the payload is ignored.
  • Redaction removes the buyer's details from those bookings and anonymizes a client only if it is a stand-in. A real planora.life account can be unlinked from a store's bookings, but it can never be erased by one.

The lesson: a Shopify app that owns its own accounts has to decide which identity a store is allowed to speak for. The answer is the store's own customers, identified by the store's own IDs. An email from a store is contact data, never a key to an account.

Finding 2: the request body could override the signed store

Severity: High.

Shopify signs App Proxy requests by adding a signature to the query string, computed over the other query parameters, including shop. Planora verified it correctly in middleware. The controller then read the store like this:

// Before: validate() reads the merged input, and the body wins over the query
$payload = $request->validate(['shop' => ['required', 'string'], /* ... */]);
$shop = $this->shopify->getInstalledShopByDomain($payload['shop']);

Laravel merges the JSON body into the input, and on a key clash the body wins. The signature is over the query string only. So a POST through store A's proxy, with {"shop": "store-b.myshopify.com"} in the body, passed the signature check for A and then worked on B: holds were created on B's calendars and B's cart data was returned.

The fix: the App Proxy middleware puts the store from the signed query string into a request attribute, and controllers read it from there and nowhere else. shop is gone from every validation rule in the proxy controllers.

The lesson: verifying a signature protects only the bytes it covers. In Laravel, input(), validate() and all() all merge the body over the query string, so any value that must come from the signed part has to be read with query() or passed on by the middleware that checked it.

Finding 3: one rate limit for every storefront

Severity: High (availability).

The App Proxy routes had throttle:60,1, Laravel's usual 60 requests a minute per IP. App Proxy requests come from Shopify's servers, not from shoppers' browsers, and Planora's API sits behind Cloudflare. The app was not set up to trust any forwarded header, so the IP it saw was a Cloudflare edge address shared by huge numbers of requests.

That turned a per-visitor limit into a nearly global one. A busy store, or anyone sending a slow stream of requests through any store's proxy, could use up the budget, and the booking widget would stop showing slots for shoppers everywhere.

The fix: the proxy limit is no longer keyed on an IP at all. It is keyed on the signed store, with a higher ceiling, so one store's traffic can only affect that store. The rebooking pages, which customers reach from an email link, are limited per link token for the same reason.

The lesson: the same as in our Catalog Guard audit. In a Shopify app, the "client IP" depends on Shopify's proxy and everything you put in front of your app. Find out what your application actually sees before you key anything on it, and prefer a signed identifier when there is one.

Finding 4: unlimited password guessing from the embedded app

Severity: High.

A store links itself to a specialist's account by entering that specialist's planora.life email and password in the embedded app. A correct password gives the store the specialist's calendars, and with them the ability to sell their time and see their clients' bookings. The endpoint had no rate limit, so a store could try passwords for any specialist as fast as it liked.

The fix: five failed attempts lock the sign-in for 15 minutes, counted separately per store and per target account. The first stops one store from trying many passwords. The second stops many stores, all free to create, from sharing the work on one account. Failed attempts are logged with the store and a hash of the email.

The lesson: a sign-in form inside the Shopify admin is still a sign-in form. The session token proves which store is asking, not that the store is allowed to guess.

Finding 5: webhook headers trusted after the HMAC check

Severity: High.

The HMAC on a Shopify webhook covers the body only. The store (X-Shopify-Shop-Domain), the topic and the webhook ID are unsigned headers, and one secret signs deliveries for every store. We explained this in detail in our HMAC guide. Planora checked the HMAC correctly and then trusted the headers and, for billing, the body.

If a genuine body ever leaked, for example through a logging or error-tracking tool, it could be replayed:

  • with a different store header, to mark another store as uninstalled or to run a redaction against another store;
  • to a different endpoint, since no handler checked that the topic matched the route;
  • as an old app_subscriptions/update with status: ACTIVE, to switch Premium back on after the merchant had cancelled. A signed body never expires.

The fix:

  • Each webhook route declares its topic, and a delivery with any other X-Shopify-Topic is rejected.
  • Webhook IDs are claimed atomically before the handler runs, so a duplicate is acknowledged without running twice. The claim is released if the handler fails, so Shopify's retries still work.
  • For app/uninstalled and the compliance topics, the store named in the signed body must match the header.
  • app_subscriptions/update no longer reads the subscription from the payload. It treats the delivery as a signal and asks the Admin API for the store's current subscriptions. If Shopify cannot be reached, the webhook fails and is retried, and the last verified plan stays in place.

The lesson: after the HMAC check, the body is authentic and every header is input. For webhooks that change billing or delete data, the safest design is to treat the delivery as a nudge and read the current state from Shopify.

Smaller fixes

  • The internal API signature did not cover the path. The embedded app signed the timestamp, method, store and body, but not the URL. A signed DELETE of one resource was also a valid DELETE of another, and any request could be replayed for five minutes. The signature now covers the path and query and a one-time nonce, and it can use its own secret instead of the app's client secret.
  • App Proxy signatures never expired. The signed timestamp was not checked, so a signed storefront URL from a log or browser history stayed valid forever. Requests more than five minutes old are now refused.
  • Personal data in logs. customers/data_request wrote everything found about the shopper to the application log, where it would outlive the request. The data now goes to the support inbox to answer the merchant, and the log only records that the request arrived.
  • An unsupported API version. The embedded app's Admin API client was still on 2025-10, which is out of support, while the backend and the Function used 2026-01. Every Shopify surface now uses 2026-10, and the deprecated featuredImage field was replaced.
  • Hardening. The Node container no longer runs as root, and the GitHub workflows left over from Shopify's app template were removed.

What the scanners got wrong

Our custom Semgrep rules produced 126 matches. Exactly one rule pointed in the direction of a real issue: an unvalidated shop parameter in the storefront controller, which led us to Finding 2. Everything else was dropped with a reason in the report.

None of the rules could have found Finding 1. Every line of that code was correct on its own: a genuine webhook, a valid signature, a lookup by email, a check for a specialist role. The bug was in what the code assumed about who an email belongs to, and that takes a person reading the flow from the attacker's side. The audit gave us a new rule as well: flag validate() or input() that reads shop inside App Proxy routes, which would have caught Finding 2 automatically.

Results

All fixes shipped together with tests for each finding and are live in production.

A checklist for your own app

If your Shopify app has accounts of its own, or anything a store can link to:

1. Find every place where data from a store, especially an email, is used to look up something outside that store. Each one is a way for any store, including a free development store, to reach it. 2. Read your customers/redact handler as an attacker who controls a store. What is the worst thing a correctly signed request can do? 3. In App Proxy controllers, search for input('shop'), validate([... 'shop' ...]) and all(). The store must come from the signed query string only. 4. Log the client IP your app sees on a real App Proxy request before you key a rate limit on it. 5. Put a rate limit on every password check, including the ones inside the embedded admin. 6. Make sure webhook handlers check the topic against the route, deduplicate by webhook ID and read billing state from the Admin API. 7. Check that your own service-to-service signatures cover the path and cannot be replayed.

If you would rather have someone else read your code from the attacker's side, our Shopify App Source Code Scan runs this process on one repository for a fixed $150. You get a written report with file and line references, fixes and the false positives we dropped. For apps whose running backend should be tested too, see the Security Readiness review.