WEBrick: prevent response splitting and header injection
authorYusuke Endoh <mame@ruby-lang.org>
Tue, 1 Oct 2019 03:29:18 +0000 (12:29 +0900)
committerUtkarsh Gupta <utkarsh@debian.org>
Fri, 5 Jun 2020 08:55:50 +0000 (09:55 +0100)
commit499fdc63aa88bf6f6a0830a426b1d9c6d0fb445f
tree7292efda8b382c970c813e7334b7a2011fb10f6a
parent2040967d238c2b49cad316ac4591dfad7577bc18
WEBrick: prevent response splitting and header injection

Origin: https://github.com/ruby/ruby/commit/3ce238b5f9795581eb84114dcfbdf4aa086bfecc
Bug-Debian-Security: https://security-tracker.debian.org/tracker/CVE-2019-16254

This is a follow up to d9d4a28f1cdd05a0e8dabb36d747d40bbcc30f16.
The commit prevented CRLR, but did not address an isolated CR or an
isolated LF.

Co-Authored-By: NARUSE, Yui <naruse@airemix.jp>
[Salvatore Bonaccorso: Backport to 2.3.3:
 - Context changes in test/webrick/test_httpresponse.rb
]

Gbp-Pq: Name WEBrick-prevent-response-splitting-and-header-inject.patch
lib/webrick/httpresponse.rb
test/webrick/test_httpresponse.rb