You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
integrity/brand-impersonation: a hosted-broker authorize link spares a sign-in label without naming the provider #1494
Found in a security review of released code (since v0.0.148). integrity/brand-impersonation spares a "Sign in with Google" or "Sign in with Microsoft" control that goes to a hosted identity broker's authorize endpoint (Auth0, Okta, Cognito, Supabase and similar). The exemption matches the host suffix and the path shape. Those hosts let anyone register a tenant, and a tenant can serve that path, so a page can borrow the exemption.
Shape (synthetic hosts)
On shop.example, a link to https://t1.auth0.com/authorize?connection=x whose label says "Continue with Google" is not reported; the same label to a plain off-brand host is.
Acceptance Criteria
A Google or Microsoft sign-in control to a broker's authorize endpoint is spared only when the endpoint's query names that provider (for example connection=google-oauth2, provider=google or provider=azure, identity_provider=Google); a bare authorize path (the broker's hosted login page) is reported like any other off-brand host (Amended 2026-11-01: a tenant that is the site's own name is spared with or without a hint, and a foreign tenant is reported even with a hint; Supabase and Firebase endpoints are not tenant-checked. See the rule docs.)
A control whose query names a different provider (a Google label with connection=github) is reported
A test fails without the change for each broker family in the list, and a real federation URL for each is still spared
Activity
fix(integrity): a broker tenant must be the site's own, a hint in the…
fix(rules): broker tenant must equal the site name or add a fixed env…
test(rules): broker tenant survivors (env hyphen, short names, hint c…
fix(integrity): a broker authorize link spares a sign-in label only w…
fix(integrity): a broker tenant must be the site's own, a hint in the…
fix(rules): broker tenant must equal the site name or add a fixed env…
test(rules): broker tenant survivors (env hyphen, short names, hint c…
nc9 commentedon Nov 1, 2026
Shipped in v0.0.156 and checked against it: every acceptance criterion is met. Criterion 1 is reworded to match the shipped behaviour (the site's own tenant is spared, a foreign tenant is reported even with a provider hint). Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.156
nik