Advisory

GHSA-2j9c-9vmv-7m39

Also known as: CVE-2017-11173

Summary

Missing Regex anchor in Rack-Cors allows malicious third party site to perform CORS request

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2018-07-31 18:18 UTC
Modified
2024-12-03 06:02 UTC

Affected packages and fixes

rack-cors

RubyGems · All systems

Affected

  • introduced 0, fixed 0.4.1 (ecosystem)

Fixed versions

0.4.1

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences