owasp-modsecurity / owasp-modsecurity/ModSecurity
sanitiseMatchedBytes only works with 1 digit parameters
Open
@zimmerle is already working on this.
Since Dec 9, 2020.
2.x
enhancement
- Dominant language
- C++
- Stars
- 9.8k
- Forks
- 1.8k
- Avg merge
- 2h 46m
- Merged PRs (30d)
- 1
Description
sanitiseMatchedBytes:5/8 => OK
sanitiseMatchedBytes:10/2 => not accepted => sanitizes the whole string
In msre_action_sanitizeMatchedBytes_init():
if (action->param != NULL && strlen(action->param) == 3)
should be
if (action->param != NULL && strlen(action->param) >= 3)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.