Skip to content

integrity/brand-impersonation: controlsUnread can count one control twice #1491

Closed

Description

@nc9

Found in the review of #1469. The integrity control scan counts a control as "not read in full" in two places: once when it builds the control's attribute windows and again when it applies the window budget, and a control that trips both (for example an attribute over 16,000 characters that also has more cue windows than the cap) can be counted twice. controlsUnread then reports more controls than the page has. Pre-existing and not caused by #1469.

Acceptance Criteria

  • details.controlsUnread counts each control at most once, however many of its bounds were hit
  • A control that hits both the attribute bound and a window cap is counted once, with a test
  • The count still includes controls cut by the prepared-controls cap, by templates and by the logo-alt cap

Activity

  1. added
    size: XS
    rules
    on Nov 1, 2026
  2. added theissue type on Nov 1, 2026
  3. nc9 commented on Nov 2, 2026

    @nc9
    ContributorAuthor

    Checked against v0.0.159, which shipped the fix: all three criteria are met. controlsUnread for 1 and for 3 controls equals the number of distinct controls for each of attribute bound only, window cap only, text read only, attribute + window, attribute + text, window + text and all three; the prepared-controls cap and the logo-alt cap are still counted (templates are counted in templatesUnread, as the docs say). Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.159

    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

    rulessize: XS

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions