Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1470687 (CVE-2017-11173) - CVE-2017-11173 rubygem-rack-cors: Missing anchor in generated regex in rack/cors.rb#L256 may permit forged malicious requests
Summary: CVE-2017-11173 rubygem-rack-cors: Missing anchor in generated regex in rack/c...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: CVE-2017-11173
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1470688 1470689
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-13 13:06 UTC by Pedro Sampaio
Modified: 2019-09-29 14:16 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-12-31 16:08:10 UTC
Embargoed:


Attachments (Terms of Use)

Description Pedro Sampaio 2017-07-13 13:06:12 UTC
Missing anchor in generated regex for rack-cors before 0.4.1
allows a malicious third-party site to perform CORS requests.
If the configuration were intended to allow only the trusted
example.com domain name and not the malicious example.net domain name,
then example.com.example.net (as well as example.com-example.net) would
be inadvertently allowed.

Upstream patch:

https://github.com/cyu/rack-cors/commit/42ebe6caa8e85ffa9c8a171bda668ba1acc7a5e6

References:

https://github.com/cyu/rack-cors/blob/v0.4.0/lib/rack/cors.rb#L256
https://packetstormsecurity.com/files/143345/rack-cors-Missing-Anchor.html

Comment 1 Pedro Sampaio 2017-07-13 13:06:35 UTC
Created rubygem-rack-cors tracking bugs for this issue:

Affects: epel-all [bug 1470688]
Affects: fedora-all [bug 1470689]


Note You need to log in before you can comment on or make changes to this bug.