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: controlsUnread can count one control twice #1491
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
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
Activity
test(rules): integrity unread-once: multi-control and mixed-rank case…
test(rules): unread-once: killer cases for attribute-only, rank order…
fix(rules): integrity controlsUnread counts a control once however ma…
test(rules): integrity unread-once: multi-control and mixed-rank case…
test(rules): unread-once: killer cases for attribute-only, rank order…
nc9 commentedon Nov 2, 2026
Checked against v0.0.159, which shipped the fix: all three criteria are met.
controlsUnreadfor 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 intemplatesUnread, as the docs say). Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.159nik