Improper Access Control Affecting rack-cors package, versions <1.0.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-RUBY-RACKCORS-540775
  • published 6 Jan 2020
  • disclosed 27 Sep 2016
  • credit Evan J Johnson

Introduced: 27 Sep 2016

CVE NOT AVAILABLE CWE-284 Open this link in a new tab

How to fix?

Upgrade rack-cors to version 1.0.0 or higher.

Overview

rack-cors is a Rack Middleware for handling Cross-Origin Resource Sharing (CORS), which makes cross-origin AJAX possible.

Affected versions of this package are vulnerable to Improper Access Control. Setting origin: '*' reflects the origin header as oppose to returning: Access-Control-Allow-Origin: *. Defaulting to Access-Control-Allow-Credentials: true is also inherently insecure, and when combined with this unexpected reflection of the origin header means sites are configured without a SAMEORIGIN policy.

References

CVSS Scores

version 3.1
Expand this section

Snyk

4.4 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    High
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    Required
  • Scope (S)
    Changed
  • Confidentiality (C)
    Low
  • Integrity (I)
    Low
  • Availability (A)
    None