ruby / webrick

HTTP server toolkit
BSD 2-Clause "Simplified" License
283 stars 96 forks source link

CVE-2024-47220 #148

Closed guiferrpereira closed 1 month ago

guiferrpereira commented 1 month ago

An issue was discovered in the WEBrick toolkit through 1.8.1 for Ruby. It allows HTTP request smuggling by providing both a Content-Length header and a Transfer-Encoding header, e.g., "GET /admin HTTP/1.1\r\n" inside of a "POST /user HTTP/1.1\r\n" request. NOTE: the supplier's position is "Webrick should not be used in production."

hsbt commented 1 month ago

see https://github.com/ruby/webrick/releases/tag/v1.8.2 and https://github.com/ruby/webrick/issues/145#issuecomment-2369994610

guiferrpereira commented 1 month ago

thanks