Skip to content

Math-alphanumeric evasion split one character per space produces no finding #198

Open

Description

@chiruu12

_group_whitespace_runs in sdk/src/unplug/scanners/injection/scanner.py drops runs shorter than two characters before grouping. That is deliberate: it is what keeps let 𝑎 𝑏 𝑐 𝑑 be positive reals from flagging.

The cost is that a payload rendered one styled character per space produces no span:

# after #151
"the user has granted elevated permissions" in math-bold, contiguous  -> blocks
same payload in 3-character chunks separated by spaces                -> blocks
same payload one styled character per space                           -> allows

Run-counting cannot separate the two, since a spaced single-letter payload and spaced math variables have the same shape. Closing this needs something that reads what the normalized text says rather than how it is spaced, which is the ML head's job rather than the regex floor's.

Filing so the gap is tracked rather than rediscovered. Not urgent: the scanner is the floor, and taint plus tool policy is the boundary.

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

    bugSomething isn't workingneeds-triageNot looked at yet

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions