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. Learn more

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 Learn

Learn about Improper Access Control vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-RACKCORS-540775
  • published6 Jan 2020
  • disclosed27 Sept 2016
  • creditEvan J Johnson

Introduced: 27 Sep 2016

CVE NOT AVAILABLE CWE-284  (opens 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.

CVSS Scores

version 3.1