mirror of
https://github.com/nginx/nginx.git
synced 2026-05-13 09:36:42 +00:00
Restrict duplicate TE headers in HTTP/2 and HTTP/3
Following d3a76322cf, this change rejects requests which have multiple
TE headers.
Reported-by: geeknik <geeknik@protonmail.ch>
This commit is contained in:
parent
ff8221b4db
commit
4e89ce224f
2 changed files with 4 additions and 2 deletions
|
|
@ -3849,7 +3849,8 @@ ngx_http_v2_run_request(ngx_http_request_t *r)
|
|||
}
|
||||
|
||||
if (r->headers_in.te
|
||||
&& (r->headers_in.te->value.len != 8
|
||||
&& (r->headers_in.te->next
|
||||
|| r->headers_in.te->value.len != 8
|
||||
|| ngx_strncasecmp(r->headers_in.te->value.data,
|
||||
(u_char *) "trailers", 8) != 0))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1050,7 +1050,8 @@ ngx_http_v3_process_request_header(ngx_http_request_t *r)
|
|||
}
|
||||
|
||||
if (r->headers_in.te
|
||||
&& (r->headers_in.te->value.len != 8
|
||||
&& (r->headers_in.te->next
|
||||
|| r->headers_in.te->value.len != 8
|
||||
|| ngx_strncasecmp(r->headers_in.te->value.data,
|
||||
(u_char *) "trailers", 8) != 0))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue