-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Coraza always returns 'allow' #109
Comments
Hi @csuka
|
Got the same behavior on main: Spoa config
Main coraza config
Logs
|
Got it. This one seems to do the job: https://github.com/corazawaf/coraza-spoa/blob/main/doc/config/haproxy.cfg It seems PR #103 has fix the link in the README. (Note: Maybe there also were some other fixes in #103)
|
I'm using Alma 8, go version go1.21.11, haproxy 2.8.10.
I've cloned the repo, created the coraza-spoa binary, and setup all config files, essentially following this guide.
I run the binary, and it's listening on port 9000.
When I do a curl request, e.g.
curl http://localhost:80/\?x\=/etc/passwd
, I see the request being denied by the owasp ruleset, but coraza returns an allow to haproxy. I've checked this using the debug option in haproxy:%[var(txn.coraza.action)]
.I expected a deny, as the owasp ruleset flags the request as critical as well.
Example of coraza message:
I actually think that this commit broke it.
Also, when using the docker container I get the same results.
The text was updated successfully, but these errors were encountered: