Highlights
Auth Bypass: 3 prior fixes. Scrutinize any change in this area.
packages/koa-shopify-auth/src/auth/redirection-page.ts: most-fixed (3 issues). Treat as high-risk during review.
12 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns
The bug types that recur here, drawn from past fixes, not open vulnerabilities.
Reflected XSS: Unsanitized URL parameters like `shop` are interpolated into inline JavaScript script blocks, allowing attackers to execute arbitrary scripts in the context of the user's session. This risk is highlighted by CVE-2020-8176.
Auth Bypass: Incorrectly structured asynchronous middleware return signatures in Koa fail to properly await downstream handler execution, enabling requests to bypass authentication checks entirely.
Auth Bypass: A lack of strict validation between the requested shop parameter and the current session state allows session mismatch vulnerabilities, which can lead to unauthorized account/shop access.