owasp-modsecurity / owasp-modsecurity/ModSecurity

@eq operator should produce a warning if used with non-numeric value

Open
#2,281 0 comments 1 reaction 1 assignee View on GitHub

@martinhsv is already working on this.

Since Mar 11, 2020.

3.x enhancement
Dominant language
C++
Stars
9.8k
Forks
1.8k
Avg merge
2h 46m
Merged PRs (30d)
1

Description

The @eq operator is currently intended to be used with numeric values. But, with a name like 'eq' a rule writer may inadvertently compose a rule with something like "@eq foo" ... which is unlikely to be what the rule writer intends.

It might be helpful if use of @eq with a non-numeric value produced at least a warning message at rule-load time.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.