Erlang OTP httpd 18.1.4-тен 27.3.4.17-ге дейінгі және inets 6.0.3-тен 9.3.2.7-ге дейінгі нұсқаларына әсер етеді, егер бүлінген блок өлшемі тақырыптардан кейін бөлек жазуда келсе. 27.3.4.17 және 9.3.2.7 нұсқаларында түзетілген.
Қызмет көрсетуден бас тарту: қайталанатын сұраулар барлық қолжетімді httpd жұмысшыларын иеленіп, заңды клиенттерге қызмет көрсетуден бас тартады.
Түзетілген нұсқалар: 9.3.2.727.3.4.17
Уақытша шешім: httpd конфигурациясында minimum_bytes_per_second параметрін орнатыңыз, мысалы 200, бұл тоқтап қалған қосылымдарды үзетін мерзімді байт жылдамдығын тексеруді іске қосады.
| inets | бастап 6.0.3 → түзетілді 9.3.2.7 |
| otp | бастап 18.1.4 → түзетілді 27.3.4.17 |
Erlang/OTP inets httpd жүйесін OTP 18.1.4-тен түзетілген шығарылымдарға дейін пайдаланатын кез келген адам, әсіресе сенімсіз клиенттер серверге қол жеткізе алатын жағдайда.
Тақырыптардан кейін бөлек жазуда жіберілген бүлінген блок өлшемі жолы httpd сұрау жұмысшысын белгісіз уақытқа тоқтатып қояды. Сұрауды қосылымдар бойынша қайталау барлық қолжетімді жұмысшыларды иеленіп, заңды клиенттерге қызмет көрсетуден бас тартуы мүмкін.
Кеңес беруде OTP 18.1.4-тен 27.3.4.17, 28.5.0.6 және 29.0.6-ға дейінгі, сондай-ақ inets 6.0.3-тен 9.3.2.7, 9.6.2.3 және 9.7.2-ге дейінгі нұсқалар көрсетілген. Әсер ету үшін бүлінген блок өлшемі жолы тақырыптардан бөлек жазуда келуі керек.
Түпнұсқа тақырып: httpd parks a request worker indefinitely on a malformed chunk size sent after the headers
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 a request with a chunked body whose chunk-size line is not a hexadecimal number. The worker serving the connection is never released and no timeout reclaims it, so repeating the request across connections occupies every available worker and denies service to legitimate clients. No authentication is required and the default configuration is affected. The chunk-size line must arrive in a write separate from the headers. When the body accompanies the headers, httpd_request_handler:handle_body/3 calls http_chunk:decode/3 inside a try ... catch throw:Error, so the {error, {chunk_size, _}} thrown by http_chunk:decode_size/4 is answered with 400 Bad Request. When the chunk size arrives later, the decoder is resumed through a bare catch in httpd_request_handler:handle_info/2, which converts the throw into a return value rather than raising it; the resulting error tuple is then treated as the next decoder continuation, the socket is re-armed, and the worker waits for data that never comes. The request timeout has already been cancelled at the point the headers were accepted, and the periodic byte-rate check is only armed when minimum_bytes_per_second is configured, which it is not by default. This issue affects OTP from OTP 18.1.4 before OTP 27.3.4.17, OTP 28.5.0.6, and OTP 29.0.6, corresponding to inets from 6.0.3 before 9.3.2.7, 9.6.2.3, and 9.7.2.