Skip to content

Escape double quotation mark character in non-regex operator #3252

Open
@capy3ra

Description

@capy3ra

Currently, am using Nginx + ModSecurity v3.
I want to create a rule that filters double quotation mark characters using a non-regex operator.
Pattern: not "redirect" to
I write the rule below:

SecRule ARGS|REQUEST_BODY "@streq not \"redirect\" to" "id:1,deny,log,..."

But it not working as I hope

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.xRelated to ModSecurity version 3.xbugIt is a confirmed bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions