Connection response header is seen by the rules on HTTP/2 responses
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- c, nginx
- Lĩnh vực
- backend, networking
Hướng nghiên cứu
The synthesized Connection and Keep-Alive headers are built in the response-header filter in src/ngx_http_modsecurity_header_filter.c, around lines 297-345, which the issue links. Read that block, then confirm how HTTP/2 and HTTP/3 streams are distinguished from HTTP/1 there. Done means RESPONSE_HEADERS contains no Connection or Keep-Alive for h2 and h3 responses while HTTP/1 behaviour is unchanged. Pull request #417 is already open against this issue, so check it before starting.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The response-header filter synthesizes a Connection header for the rules, because nginx only adds it in its terminal HTTP/1 header filter:
It does so for every request, including HTTP/2 (and HTTP/3) ones. Those protocols forbid connection-specific header fields (RFC 9113 §8.2.2, RFC 9114 §4.2) and nginx never sends them there, so on an HTTP/2 response the rules see Connection: close although no such header is sent:
listen 8443 ssl;
http2 on;
modsecurity_rules '
SecRuleEngine On
SecRule &RESPONSE_HEADERS:Connection "!@eq 0" "id:1,phase:3,deny,status:403"
';
Every HTTP/2 response to this location is a 403, while over HTTP/1 the rule behaves as written. A rule written against RESPONSE_HEADERS:Connection therefore false-positives on every HTTP/2 response.
(Keep-Alive comes from the same function but needs r->keepalive, which is never set on an HTTP/2 stream, so in practice only Connection is affected.)
Expected: no Connection / Keep-Alive in RESPONSE_HEADERS for HTTP/2 and HTTP/3 responses.
- Ngôn ngữ chính
- Perl
- Star
- 1.9k
- Fork
- 312
- Merge trung bình
- 2 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của owasp-modsecurity/ModSecurity-nginx
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
owasp-modsecurity/ModSecurity-nginx#418 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Possible dereference of NullĐang mở:1st_place_medal: good first issue enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
owasp-modsecurity/ModSecurity-nginx#359 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Relative Location response header is seen by the rules, nginx sends it absoluteCó thể đã có người làm @fzipi đã nhận hôm nay. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
owasp-modsecurity/ModSecurity-nginx#422 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Transfer-Encoding and Connection response headers seen by the rules don't match the chunked filter'sCó thể đã có người làm @fzipi đã nhận hôm nay. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
owasp-modsecurity/ModSecurity-nginx#420 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Documentation: Clarify dynamic module ABI compatibility with distribution-patched NGINX packagesCó thể đã có người làm @airween đã nhận hôm nay. Đang mởenhancement
owasp-modsecurity/ModSecurity-nginx#419 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của owasp-modsecurity/ModSecurity-nginx
Issue tương tự
-
fix(rodex): sent mail loses the last character of title and bodyCó thể đã có người làm @baphomello đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
inverse-inc/packetfence#9768 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
-
Package Update Update Bot
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
priv-kweihmann/meta-sca#13307 ·