Your message dated Sat, 16 Feb 2019 11:36:33 +0000 with message-id <1550316993.21192.50.camel@adam-barratt.org.uk> and subject line Closing bugs for updates included in 9.8 has caused the Debian Bug report #914184, regarding stretch-pu: package ruby-rack/1.6.4-4+deb9u1 to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 914184: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=914184 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: submit@bugs.debian.org
- Subject: stretch-pu: package ruby-rack/1.6.4-4+deb9u1
- From: Chris Lamb <lamby@debian.org>
- Date: Tue, 20 Nov 2018 04:19:50 -0500
- Message-id: <1542705590.976479.1582943144.05A10D2F@webmail.messagingengine.com>
Package: release.debian.org Severity: normal Tags: stretch User: release.debian.org@packages.debian.org Usertags: pu Dear stable release managers, Please consider ruby-rack (1.6.4-4+deb9u1) for stretch: ruby-rack (1.6.4-4+deb9u1) stretch; urgency=medium * CVE-2018-16471: Prevent a possible XSS vulnerability where a malicious request could impact the HTTP/HTTPS scheme returned to the underlying application. (Closes: #913005) The full diff is attached. Regards, -- ,''`. : :' : Chris Lamb `. `'` lamby@debian.org / chris-lamb.co.uk `-diff --git a/debian/changelog b/debian/changelog index da7b047..dbb5d8f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +ruby-rack (1.6.4-4+deb9u1) stretch; urgency=medium + + * CVE-2018-16471: Prevent a possible XSS vulnerability where a malicious + request could impact the HTTP/HTTPS scheme returned to the underlying + application. (Closes: #913005) + + -- Chris Lamb <lamby@debian.org> Tue, 20 Nov 2018 10:10:14 +0100 + ruby-rack (1.6.4-4) unstable; urgency=medium * Team upload. diff --git a/debian/patches/CVE-2018-16471.patch b/debian/patches/CVE-2018-16471.patch new file mode 100644 index 0000000..51f98c2 --- /dev/null +++ b/debian/patches/CVE-2018-16471.patch @@ -0,0 +1,52 @@ +From: Chris Lamb <lamby@debian.org> +Date: Tue, 20 Nov 2018 10:03:55 +0100 +Subject: CVE-2018-16471 + +Backported from https://github.com/rack/rack/commit/97ca63d87d88b4088fb1995b14103d4fe6a5e594 +--- + lib/rack/request.rb | 19 +++++++++++++++---- + 1 file changed, 15 insertions(+), 4 deletions(-) + +diff --git a/lib/rack/request.rb b/lib/rack/request.rb +index ac95b1c..7459603 100644 +--- a/lib/rack/request.rb ++++ b/lib/rack/request.rb +@@ -13,6 +13,8 @@ module Rack + # The environment of the request. + attr_reader :env + ++ SCHEME_WHITELIST = %w(https http).freeze ++ + def initialize(env) + @env = env + end +@@ -68,10 +70,8 @@ module Rack + 'https' + elsif @env['HTTP_X_FORWARDED_SSL'] == 'on' + 'https' +- elsif @env['HTTP_X_FORWARDED_SCHEME'] +- @env['HTTP_X_FORWARDED_SCHEME'] +- elsif @env['HTTP_X_FORWARDED_PROTO'] +- @env['HTTP_X_FORWARDED_PROTO'].split(',')[0] ++ elsif forwarded_scheme ++ forwarded_scheme + else + @env["rack.url_scheme"] + end +@@ -394,5 +394,16 @@ module Rack + s + end + end ++ ++ def forwarded_scheme ++ scheme_headers = [ ++ @env['HTTP_X_FORWARDED_SCHEME'], ++ @env['HTTP_X_FORWARDED_PROTO'].to_s.split(',')[0] ++ ] ++ scheme_headers.each do |header| ++ return header if SCHEME_WHITELIST.include?(header) ++ end ++ nil ++ end + end + end diff --git a/debian/patches/series b/debian/patches/series index 3a39f9c..bfc724e 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ 0001-Fix-Params_Depth.patch +CVE-2018-16471.patch
--- End Message ---
--- Begin Message ---
- To: 871937-done@bugs.debian.org, 878816-done@bugs.debian.org, 880622-done@bugs.debian.org, 882824-done@bugs.debian.org, 887157-done@bugs.debian.org, 887399-done@bugs.debian.org, 891569-done@bugs.debian.org, 891649-done@bugs.debian.org, 891660-done@bugs.debian.org, 892845-done@bugs.debian.org, 892853-done@bugs.debian.org, 893541-done@bugs.debian.org, 893543-done@bugs.debian.org, 893550-done@bugs.debian.org, 896811-done@bugs.debian.org, 906142-done@bugs.debian.org, 906239-done@bugs.debian.org, 906813-done@bugs.debian.org, 908957-done@bugs.debian.org, 908960-done@bugs.debian.org, 908965-done@bugs.debian.org, 909127-done@bugs.debian.org, 909131-done@bugs.debian.org, 909213-done@bugs.debian.org, 913085-done@bugs.debian.org, 913525-done@bugs.debian.org, 913529-done@bugs.debian.org, 913801-done@bugs.debian.org, 913881-done@bugs.debian.org, 913885-done@bugs.debian.org, 913942-done@bugs.debian.org, 914032-done@bugs.debian.org, 914081-done@bugs.debian.org, 914184-done@bugs.debian.org, 914265-done@bugs.debian.org, 914475-done@bugs.debian.org, 914594-done@bugs.debian.org, 914841-done@bugs.debian.org, 914961-done@bugs.debian.org, 915715-done@bugs.debian.org, 915875-done@bugs.debian.org, 916435-done@bugs.debian.org, 916627-done@bugs.debian.org, 916632-done@bugs.debian.org, 916882-done@bugs.debian.org, 916912-done@bugs.debian.org, 917560-done@bugs.debian.org, 917620-done@bugs.debian.org, 917820-done@bugs.debian.org, 917900-done@bugs.debian.org, 917911-done@bugs.debian.org, 918337-done@bugs.debian.org, 918601-done@bugs.debian.org, 918762-done@bugs.debian.org, 919106-done@bugs.debian.org, 919712-done@bugs.debian.org, 919990-done@bugs.debian.org, 920372-done@bugs.debian.org, 920379-done@bugs.debian.org, 920381-done@bugs.debian.org, 920382-done@bugs.debian.org, 920632-done@bugs.debian.org, 920804-done@bugs.debian.org, 921107-done@bugs.debian.org, 921117-done@bugs.debian.org, 921281-done@bugs.debian.org, 921475-done@bugs.debian.org, 921620-done@bugs.debian.org, 921642-done@bugs.debian.org, 921643-done@bugs.debian.org, 921743-done@bugs.debian.org, 921811-done@bugs.debian.org, 921825-done@bugs.debian.org, 921844-done@bugs.debian.org, 921857-done@bugs.debian.org, 921864-done@bugs.debian.org, 921876-done@bugs.debian.org, 921885-done@bugs.debian.org, 921893-done@bugs.debian.org, 921907-done@bugs.debian.org, 921908-done@bugs.debian.org, 921910-done@bugs.debian.org, 921911-done@bugs.debian.org, 921997-done@bugs.debian.org, 922221-done@bugs.debian.org
- Subject: Closing bugs for updates included in 9.8
- From: "Adam D. Barratt" <adam@adam-barratt.org.uk>
- Date: Sat, 16 Feb 2019 11:36:33 +0000
- Message-id: <1550316993.21192.50.camel@adam-barratt.org.uk>
Version: 9.8 Hi, The update referenced by each of these bugs was included in this morning's stretch point release. Regards, Adam
--- End Message ---