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

Can http3 be used with Coraza? #86

Closed
boschje opened this issue Jul 10, 2023 · 4 comments
Closed

Can http3 be used with Coraza? #86

boschje opened this issue Jul 10, 2023 · 4 comments

Comments

@boschje
Copy link

boschje commented Jul 10, 2023

Caddy webserver support the http3 protocol. However it looks like it can not be used with Coraza.

To enable http3 both 443/tcp and 443/udp need to be opened in the firewall. But access to the site is then blocked by Coraza and I see these entries in the log:
Coraza: Access denied (phase 1). HTTP protocol version is not allowed by policy @owasp_crs/REQUEST-920-PROTOCOL-ENFORCEMENT.conf

When I close 443/udp in the firewall Caddy will serve http2 and then all is working as expected.

@jcchavezs
Copy link
Member

jcchavezs commented Jul 10, 2023 via email

@jptosso
Copy link
Member

jptosso commented Jul 10, 2023

In the meantime, it can be addressed with the following rule before importing CRS:

SecAction \
    "id:900230,\
    phase:1,\
    pass,\
    t:none,\
    nolog,\
    setvar:'tx.allowed_http_versions=HTTP/1.0 HTTP/1.1 HTTP/2 HTTP/2.0 HTTP/3 HTTP/3.0'"

@boschje
Copy link
Author

boschje commented Jul 10, 2023

Thank you for that extra rule, it worked well

@boschje boschje closed this as completed Jul 10, 2023
@jpds
Copy link

jpds commented Aug 16, 2023

Fixed in the code itself by corazawaf/coraza-coreruleset#7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants