Skip to content

integrity/brand-impersonation: a hosted-broker authorize link spares a sign-in label without naming the provider #1494

Closed

Description

@nc9

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
  • The rule docs state the condition

Metadata

Metadata

Assignees

No one assigned

    Labels

    rulessecuritysize: S

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions