Skip to content
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-caddy is working on sandbox ? #3597

Open
Barnoux opened this issue Mar 3, 2024 · 2 comments
Open

coraza-caddy is working on sandbox ? #3597

Barnoux opened this issue Mar 3, 2024 · 2 comments
Assignees
Labels
sandbox Sandbox related problems 👍 Feature Request

Comments

@Barnoux
Copy link

Barnoux commented Mar 3, 2024

Describe the bug

I aimed to troubleshoot a false positive for a CRS rule on my coraza-caddy instance and wished to compare my results with the sandbox proposed by OWASP. However, when doing the query, in the response header of the server, it appears that the backend is marked as invalid, leading to a fallback to Apache Nightly.

open a terminal in Linux, and run this command line

curl -v -H "x-backend: coraza-caddy"   -H "x-format-output: json-matched-rules"   -H "x-crs-paranoia-level: 3"   https://sandbox.coreruleset.org/?file=/etc/passwd | jq .

Expected behaviour

We should have a reponse processed by coraza-caddy

Actual behaviour

After running the previous command, i got in the following response from the sandbox server :

> GET /?file=/etc/passwd HTTP/1.1
> Host: sandbox.coreruleset.org
> User-Agent: curl/7.88.1
> Accept: */*
> x-backend: coraza-caddy
> x-format-output: json-matched-rules
> x-crs-paranoia-level: 3
> 
{ [5 bytes data]
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
{ [124 bytes data]
< HTTP/1.1 200 OK
< Date: Sun, 03 Mar 2024 20:58:26 GMT
< Content-Type: application/json
< Transfer-Encoding: chunked
< Connection: keep-alive
< X-Unique-ID: ZeTkclGUhYyF4lJGamKOXQAAAMs
< x-backend: invalid, fallback to apache-nightly

@Barnoux Barnoux added the 🐛 bug Something isn't working label Mar 3, 2024
@fzipi
Copy link
Member

fzipi commented Mar 3, 2024

Not yet, I need to work on it.

@fzipi fzipi self-assigned this Mar 3, 2024
@fzipi fzipi added the sandbox Sandbox related problems label Mar 20, 2024
@fzipi
Copy link
Member

fzipi commented May 6, 2024

Started to work on this one, expect news for next monthly meeting (June).

@fzipi fzipi added 👍 Feature Request and removed 🐛 bug Something isn't working labels May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sandbox Sandbox related problems 👍 Feature Request
Projects
None yet
Development

No branches or pull requests

2 participants