Improper Access Control Affecting github.com/gorilla/handlers package, versions <1.3.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.21% (59th percentile)

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-GOLANG-GITHUBCOMGORILLAHANDLERS-540773
  • published6 Jan 2020
  • disclosed1 Nov 2017
  • creditEvan J Johnson

Introduced: 1 Nov 2017

CVE-2017-20146  (opens in a new tab)
CWE-284  (opens in a new tab)

How to fix?

Upgrade github.com/gorilla/handlers to version 1.3.0 or higher.

Overview

github.com/gorilla/handlers is a collection of handlers (aka "HTTP middleware") for use with Go's net/http package (or any framework supporting http.Handler).

Affected versions of this package are vulnerable to Improper Access Control. CORS is misconfigured to allow the server to reflect all origin headers. This may allow an attacker to make AJAX requests to vulnerable hosts through cross-site scripting or a malicious HTML Document, effectively bypassing the Same Origin Policy.

CVSS Scores

version 3.1