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: an attribute label padded with real characters before the phrase is cut at 300 #1424
Found in review of #1399. aria-label, title, value and a logo alt are normalised over their first 16,000 characters and cut to 300, and a longer value is only counted in controlsUnread. A control whose attribute is padded with real characters (not spaces or invisible ones, which are removed first) before the phrase, e.g. aria-label="aaaa...(400 chars) Sign in with Google" on an icon-only control with no text, is missed, and the only signal is the info note when nothing else fired.
Acceptance Criteria
An icon-only control whose aria-label, title, value or logo alt has a sign-in phrase after more than 300 real characters is found, or reported as not fully read in the check it belongs to
The cut keeps the end of the label as well as the start, or reads every sign-in cue in the attribute within a fixed bound
One test per attribute fails on the current code and passes with the fix
The rule docs state the bound and the signal it gives
I can take this. I’ll add regression cases for aria-label, title, value, and logo alt, then adjust the bounded attribute reader so it preserves both the start and end of long labels (and document the bound/signal). I’ll keep the change focused on this rule and validate the relevant rules tests before opening a PR.
Activity
WilliamK112 commentedon Oct 31, 2026
I can take this. I’ll add regression cases for
aria-label,title,value, and logoalt, then adjust the bounded attribute reader so it preserves both the start and end of long labels (and document the bound/signal). I’ll keep the change focused on this rule and validate the relevant rules tests before opening a PR.fix(integrity): label windows share a page-wide budget, cue-prefilter…
fix(integrity): label window budget fails safe: raw-cue tier first, p…
fix(integrity): scan long control label windows squirrelscan#1424
fix(integrity): scan long control label windows #1424
fix(integrity): label windows: cue prefilter derived from the lexicon…
fix(integrity): scan long control label windows #1424
fix(integrity): label windows: cue prefilter derived from the lexicon…
nc9 commentedon Oct 31, 2026
Shipped in v0.0.152 (
c09396f9794e1dc3), verified against main: every acceptance criterion is met. Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.152nik
perf(integrity): bound logo alts per control, free the window arrays …
perf(integrity): bound logo alts per control, free the window arrays …
fix(integrity): a long late logo alt counts the control as not read i…
perf(integrity): bound logo alts per control, free the window arrays …
fix(integrity): a long late logo alt counts the control as not read i…
docs(changelog): group Unreleased, keep the v0.0.154 section as tagge…