RubySec

Providing security resources for the Ruby community

CVE-2017-11173 (rack-cors): rack-cors Gem Missing Anchor permits unauthorized CORS requests

ADVISORIES

GEM

rack-cors

SEVERITY

CVSS v2: 6.8

PATCHED VERSIONS

  • >= 0.4.1

DESCRIPTION

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.