diff options
| author | Sergey Kandaurov <pluknet@nginx.com> | 2026-01-13 16:51:07 +0400 |
|---|---|---|
| committer | Sergey Kandaurov <s.kandaurov@f5.com> | 2026-01-21 20:39:00 +0400 |
| commit | cb9252ae6537d8c24addcf0822267804fc73db43 (patch) | |
| tree | 26db85fed975f1c460f44813541531286086d357 /src/http/modules/ngx_http_auth_basic_module.c | |
| parent | 7fa941a55e211ebd57f512fbfb24d59dbb97940d (diff) | |
| download | nginx-cb9252ae6537d8c24addcf0822267804fc73db43.tar.gz nginx-cb9252ae6537d8c24addcf0822267804fc73db43.tar.bz2 | |
Range filter: reasonable limit on multiple ranges.
A total response length with multiple ranges can be larger than the
source response size due to multipart boundary headers. This change
extends max ranges limit imposed in c2c3e3105 (1.1.2) by accounting
boundary headers. Notably, this covers suspicious requests with a
lot of small ranges that have an increased processing overhead and
are susceptible to range based amplification attacks.
The limit disables ranges as long as a total response length comes
close to the source size, additionally penalizing small size ranges
on a large source size where a processing overhead prevails, while
leaving a room for more ranges on a small source size, such that it
should not affect well-behaving applications. The limit can be
altered with the "max_ranges" directive.
Closes #988 on GitHub.
Diffstat (limited to 'src/http/modules/ngx_http_auth_basic_module.c')
0 files changed, 0 insertions, 0 deletions
