Shopify shopify_app
Shopify App: Token exchange shop context confusion may allow cross-shop authorization bypass in affected apps
Shopify App is a Rails engine for building Shopify applications. From 22.1.0 until 23.0.3, `token-exchange` authenticated controllers can expose a request-derived `shop` context instead of the identity from a verified Shopify ID token or active Shopify session. `current_shopify_domain` can resolve to the sanitized `shop` query parameter, so a request authenticated for one `shop` can cause application code to treat a different requested `shop` as current. Affected applications use `shopify_app` `token-exchange` authentication, accept authenticated requests with a `shop` query parameter, and rely on `current_shopify_domain` or `params[:shop]` for authorization, tenant lookup, stored access-token selection or `shop`-scoped data access. An attacker with a valid Shopify session token for one `shop` can supply another `shop` in that parameter and potentially obtain unauthorized application data or perform `shop`-scoped actions, depending on the application's authorization model. This issue is fixed in version 23.0.3.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 22.1.0, < 23.0.3
Fixed in 23.0.3
Mitigation
Upgrade shopify_app to 23.0.3 or later.
References
- Vendor advisory github.com/Shopify/shopify_app/security/adviso…
- Patch github.com/Shopify/shopify_app/pull/2081
- Patch github.com/Shopify/shopify_app/commit/a09ccc04…
1 more
- Release notes github.com/Shopify/shopify_app/releases/tag/v2…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.