Closed andremralves closed 1 year ago
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
@andrermalves thanks for this contribution. While I think this will solve the problem, I believe the fix should be done in the source of the problem which is Coraza. Are you up to that?
@andrermalves thanks for this contribution. While I think this will solve the problem, I believe the fix should be done in the source of the problem which is Coraza. Are you up to that?
Yes! So I assume this problem occurs not only with Caddy, but with other web serves as well, right?
Could you give me a direction of which files should I look for in Coraza?
@andrermalves thanks for this contribution. While I think this will solve the problem, I believe the fix should be done in the source of the problem which is Coraza. Are you up to that?
Yes! So I assume this problem occurs not only with Caddy, but with other web serves as well, right?
Could you give me a direction of which files should I look for in Coraza?
Apparently the error is here: https://github.com/corazawaf/coraza/blob/0dabae31d831f4f6d0f1bb57a1c5adc5cd4f2eb5/internal/corazarules/rule_match.go#L226
This PR has been superseded upstream by https://github.com/corazawaf/coraza/pull/827 (specifically by https://github.com/corazawaf/coraza/pull/827/commits/f421bb04f1dddedecd0b0f756da8bdfa617d539e). Closing this one. @andremralves thanks for raising it and pushing towards the fix!
It seems that the some error messages already come with a new line from Coraza WAF and the logger used in
coraza.go
also adds a new line.So I trimmed the extra "\n" from the message.