Shopify Appの脆弱性、別ストアのデータに不正にアクセスされるおそれ
Summary
Shopify Appの token-exchange 認証を使うアプリで、認証を受けたストアとは別のストアを指定されると、認可を回避されるおそれがあります。影響を受けるのは22.1.0から23.0.2までの版で、23.0.3で修正されています。shopify_app を23.0.3以降に更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Shopify Appの token-exchange 認証を使うアプリで、認証を受けたストアとは別のストアを指定されると、認可を回避されるおそれがあります。影響を受けるのは22.1.0から23.0.2までの版で、23.0.3で修正されています。shopify_app を23.0.3以降に更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| rubygemsshopify_app |
≥ 22.1.0, < 23.0.3→ 23.0.3 |
23.0.3 |
| Shopifyshopify_app | — | Not listed |
Original description The description as published by the source.
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.
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- web github.com
- web github.com