Bug 1646818 (CVE-2018-16471)

Summary: CVE-2018-16471 rubygem-rack: Cross-site scripting (XSS) via `scheme` method on `Rack::Request`
Product: [Other] Security Response Reporter: Sam Fowler <sfowler>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: ahardin, apevec, bbuckingham, bcourt, bkearney, bleanhar, bmidwood, cbillett, ccoleman, chrisw, dajohnso, dclarizi, dedgar, dmetzger, eparis, gblomqui, gmccullo, gtanzill, hhorak, jaruga, jgoulding, jhardy, jjoyce, jokerman, jorton, jprause, jschluet, kdixon, lavenel, lhh, lpeer, markmc, mburns, mchappel, mmccune, mo, ohadlevy, rbryant, rchan, rjerrido, roliveri, ruby-maint, sclewis, simaishi, sisharma, slinaber, steve.traylen, strzibny, tdecacqu, tomckay, vondruch
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rubygem-rack 2.0.6, rubygem-rack 1.6.11 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-25 22:21:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1646820, 1646819, 1654556, 1655633, 1655634, 1658572    
Bug Blocks: 1646821    

Description Sam Fowler 2018-11-06 04:38:16 UTC
Rack (rubygem-rack) versions before 2.0.6 are vulnerable to a cross-site scripting (XSS) flaw via the `scheme` method on `Rack::Request`.


External Reference:

https://groups.google.com/d/msg/rubyonrails-security/GKsAFT924Ag/DYtk-Xl6AAAJ

Comment 1 Sam Fowler 2018-11-06 04:39:10 UTC
Created rubygem-rack tracking bugs for this issue:

Affects: epel-all [bug 1646820]
Affects: fedora-all [bug 1646819]

Comment 3 James Hebden 2018-11-29 06:22:29 UTC
Red Hat OpenStack Platform and OpenShift Enterprise are not affected. Whilst the version of rack in use as a dependency in optional components is vulnerable, the vulnerable variable is not used in a way that could lead to XSS.

Comment 7 Riccardo Schirone 2018-12-12 12:25:27 UTC
Upstream patches:
- https://github.com/rack/rack/commit/313dd6a05a5924ed6c82072299c53fed09e39ae7 (for 2.0-stable branch)
- https://github.com/rack/rack/commit/97ca63d87d88b4088fb1995b14103d4fe6a5e594 (for 1.6-stable branch)

Comment 11 Richard Maciel Costa 2019-01-04 22:37:32 UTC
Statement:

Red Hat OpenStack Platform and OpenShift Enterprise are not affected. Whilst the version of rack in use as a dependency in optional components is vulnerable, the vulnerable variable is not used in a way that could lead to XSS.

Subscription Asset Manager is now in a reduced support phase receiving only Critical impact security fixes. This issue has been rated as having a security impact Moderate, and is not currently planned to be addressed in future updates.

Red Hat CloudForms and Satellite 6 are not affected. Whilst the version of rack in use as a dependency in optional components is vulnerable, the vulnerable variable is not used in a way that could lead to XSS.