Skip to content

integrity/fake-auth-overlay: dvh, svh, lvh and vmax viewport units are not read as filling the viewport #1496

Closed

Description

@nc9

Found in a security review of released code (since v0.0.148). integrity/fake-auth-overlay decides that an iframe fills the viewport when its width and height contain 100%, 100vw or 100vh. The modern viewport units dvh, svh, lvh (and the width forms dvw, svw, lvw) and vmax/vmin are not recognised, so a full-screen fixed frame sized with them is not seen as a cover.

Shape

An iframe styled position:fixed;top:0;left:0;width:100vw;height:100dvh;z-index:99999 with an auth-suggestive id is not reported; with 100vh it is.

Acceptance Criteria

  • 100dvh, 100svh, 100lvh, 100dvw, 100svw, 100lvw, 100vmax and 100vmin count as filling the viewport, alone and inside calc() (for example calc(100dvh - 0px))
  • A fixed iframe sized 50dvh or 100px is still not a cover
  • Tests fail without the change for each unit
  • The rule docs list the units

Activity

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

    @nc9
    ContributorAuthor

    Shipped in v0.0.156 and checked against it: every acceptance criterion is met. Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.156

    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: XS

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions