Skip to content

overlay-style: namespaced type selectors keep a cover rule silent (star-pipe iframe, pipe iframe, attribute namespace) #1583

Closed

Description

@nc9

Problem

security/fake-auth-overlay never indexes a cover rule whose selector uses a namespace separator on the type: *|iframe.cover{...}, *|*.cover{...}, |iframe.cover{...}, *|iframe[id=google-auth]{...} and [*|id=google-auth]{...} all stay silent with the cover iframe present, although Chrome accepts these selectors and applies them to HTML iframes. parseCompound in packages/rules/src/integrity/overlay-style.ts rejects |, so the rule is never read. This is a detection evasion in the same family as the named-namespace case fixed in v0.0.162.

Acceptance Criteria

  • *|iframe.cover, *|*.cover, |iframe.cover, *|iframe[id=google-auth] and [*|id=google-auth] with the fixed full-viewport declarations fire when the cover iframe is present, at top level, inside @media, and nested.
  • A named namespace (h|x) stays doubtful (read as unknown), as in v0.0.162.
  • A test table compares each selector against a browser's accepted set (headless Chrome where available) and asserts the rule is not silent for every accepted form.

Activity

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

    @nc9
    ContributorAuthor

    Acceptance check against main 8d22fa2 (fix shipped in v0.0.163):

    # Criterion Result Evidence
    1 *|iframe.cover, *|*.cover, |iframe.cover, *|iframe[id=google-auth], [*|id=google-auth] fire at top level, in @media, nested PASS packages/rules/tests/overlay-namespace-1583.test.ts: ACCEPTED forms (the star-pipe and attribute ones) fire at top level, in a list, in @media, in @layer/@supports and nested, and as a decoy they hide the cover. The |iframe.cover forms are in ACCEPTED_NOT_APPLIED: Chrome accepts them but does not apply them to an HTML element, so they are read as undecided; the cover rule still fires in every position and a decoy does not hide the cover.
    2 A named namespace (h|x) stays doubtful PASS Same file, case "a named namespace stays doubtful": selectorListState is doubtful for h|x, h|iframe.cover, h|*.cover, [h|id=google-auth]; rule fires and a decoy does not hide the cover.
    3 A test table compares selectors against a browser's accepted set (headless Chrome where available) and asserts the rule is not silent for every accepted form PASS Case "a table of forms against headless Chrome": asks Chrome CSS.supports and matches for every form and asserts the rule fires for each one Chrome applies. Note it looks for google-chrome, google-chrome-stable, chromium or chromium-browser on PATH, so on macOS it skips with a warning unless one is linked. I ran it with google-chrome pointing at Chrome 156: not skipped, passes.

    Ran: bun test tests/overlay-namespace-1583.test.ts in packages/rules, with and without Chrome on PATH: 26 pass, 0 fail. Also confirmed docs/rules/integrity/fake-auth-overlay.mdx describes the namespace behaviour.

    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

    bugrulessecuritysize: S

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions