Lucene search

K
hackeroneOoooooo_qH1:2012121
HistoryJun 04, 2023 - 7:06 a.m.

Internet Bug Bounty: [CVE-2022-44570] Possible Denial of Service Vulnerability in Rack’s Range header parsing

2023-06-0407:06:53
ooooooo_q
hackerone.com
$480
18
internet bug bounty
denial of service
vulnerability
rack
range header parsing
cve-2022-44570
report
patch
ruby
redos
regular expression
authentication

0.001 Low

EPSS

Percentile

41.6%

I made a report and patch at https://hackerone.com/reports/1668717.

https://discuss.rubyonrails.org/t/cve-2022-44570-possible-denial-of-service-vulnerability-in-racks-range-header-parsing/82125
> There is a possible denial of service vulnerability in the Range header parsing component of Rack. This vulnerability has been assigned the CVE identifier CVE-2022-44570.
>Carefully crafted input can cause the Range header parsing component in Rack to take an unexpected amount of time, possibly resulting in a denial of service attack vector. Any applications that deal with Range requests (such as streaming applications, or applications that serve files) may be impacted.

Impact

ReDoS occurs when crafted values are sent to request headers.
Especially in Rails, access to public directories is affected.

It was possible to attack ReDoS on many servers without authentication, but in the case of this regular expression, if it is ruby 3.2 or higher, there is a memoization countermeasure, so it is not a threat.