8000 Problematic word boundary match in 932* rules · Issue #3401 · coreruleset/coreruleset · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Problematic word boundary match in 932* rules #3401
Closed
@theseion

Description

@theseion

The 932* rules, such as 932237 for example, use a word boundary match to ensure that "something" follows a command word. At a word boundary, two adjacent tokens must not both match \w and \W, i.e., one must be a word token and the other must not. This means that "something" must be a word token if the previous token was a space, redirect, etc. If "something" is not a word token, such as the dash character, then the word boundary match will fail.

Example: some-command --help would not match a search for some-command.

A possible solution to this problem might be to replace the word boundary match \b with \S.

This issue was discovered in #3394 by @EsadCetiner.

Metadata

Metadata

Assignees

Labels

🐛 bugSomething isn't workingv4Should go into release v4

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0