Skip to content

integrity/brand-impersonation: one attribute full of repeated sign-in text spends the per-attribute window cap before the brand phrase is read #1458

Closed

Description

@nc9

Found in the review of #1455. Brand-impersonation reads a long attribute label in overlapping windows, at most 40 cue-bearing windows per attribute (its first ones and its last). The cap counts windows that hold any sign-in cue, brand or not, so one attribute can fill it with auth-only text.

Repro (synthetic)

One 16 KB aria-label on a link to another host: about 7,000 characters of repeated sign in, then real-character padding, then Sign in with Google. The 40-window cap is spent on the repeated sign in windows, the window that holds the Google phrase is not read, and the check is an info note with controlsUnread: 1 instead of a finding. The #1454 version of the change found it.

Acceptance Criteria

  • The repro above is found as Google brand impersonation
  • When an attribute has more cue windows than the cap, windows that hold a brand phrase (a lexicon phrase of any brand, not only the auth cues) are kept before windows that hold only an auth cue
  • An attribute whose cue windows are cut is still counted in controlsUnread
  • A test covers the repro and an auth-only attribute that is cut and counted

Activity

  1. added
    size: S
    rules
    security
    on Oct 31, 2026
  2. added theissue type on Oct 31, 2026
  3. nc9 commented on Nov 1, 2026

    @nc9
    ContributorAuthor

    Shipped in v0.0.154 (the window cap and floor are in 983a006e and fa89ef49, both in that tag) and checked against main at v0.0.158: every acceptance criterion is met. A 16 KB label with about 7,000 characters of repeated sign in text, then padding, then Sign in with Google is found in aria-label and title; windows holding a brand word are kept ahead of auth-only windows when an attribute is over the 40-window cap; a cut attribute is counted in controlsUnread (a 16 KB auth-only label gives scanTruncated with one unread control); and the evasions and budget tests pass. Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.154

    nik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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