Қызмет көрсетуден бас тарту: қашықтағы шабуылдаушы httpd жұмысшы слоттарын ұстап, заңды клиенттерді блоктай алады
Түзетілген нұсқалар: 9.3.2.727.3.4.17
Уақытша шешім: Тоқтап қалған қосылымдарды тоқтататын байт жылдамдығын тексеруді іске қосу үшін httpd конфигурациясында minimum_bytes_per_second параметрін орнатыңыз, мысалы {minimum_bytes_per_second, 200}
| inets | бастап 5.10 → түзетілді 9.3.2.7 |
| otp | бастап 17.0 → түзетілді 27.3.4.17 |
OTP 17.0-ден бастап 27.3.4.17, 28.5.0.6 немесе 29.0.6 түзетілген шығарылымдарына дейінгі Erlang/OTP inets httpd серверлерін пайдаланатын командалар
httpd сұрау денесін қабылдау кезінде тайм-аут қолданбайды. Үлкен Content-Length бар жарамды тақырыптарды жіберіп, содан кейін тоқтап қалған клиент жұмысшы слотын босатпай ұстап тұрады, бұл заңды клиенттерді блоктауы мүмкін.
Кеңес беруде мәселе OTP 17.0-ден бастап 27.3.4.17, 28.5.0.6 және 29.0.6 түзетілген шығарылымдарына дейінгі нұсқаларға әсер ететіні айтылған. Мерзімді байт жылдамдығын тексеру тек minimum_bytes_per_second конфигурацияланғанда ғана іске қосылады және ол әдепкі бойынша өшірулі, сондықтан пайдаланылатын OTP шығарылымын және бұл опцияның httpd конфигурациясында орнатылғанын тексеріңіз.
Түпнұсқа тақырып: httpd applies no timeout while receiving a request body, parking a worker on a stalled client
Missing Release of Resource after Effective Lifetime vulnerability in Erlang/OTP inets httpd allows an unauthenticated remote attacker to cause denial of service by sending valid request headers with a large Content-Length and then stalling before the body is complete. httpd_request_handler:handle_info/2 cancels the request timeout as soon as a parse step succeeds, which includes the headers, and the clause that handles a decoder asking for more data re-arms the socket with {active, once} without setting any further timer. httpd_request:whole_body/2 returns such a continuation whenever the bytes received are fewer than the announced Content-Length, so a well-formed request that stops mid-body leaves the worker waiting indefinitely. The periodic byte-rate check that would reclaim it is armed only when minimum_bytes_per_second is configured, which it is not by default. Repeating this across connections occupies every worker permitted by max_clients and denies service to legitimate clients at negligible bandwidth cost. This issue affects OTP from OTP 17.0 before OTP 27.3.4.17, OTP 28.5.0.6, and OTP 29.0.6, corresponding to inets from 5.10 before 9.3.2.7, 9.6.2.3, and 9.7.2. Whether OTP before OTP 17.0, corresponding to inets before 5.10, is affected is unknown.