Open Redirect Affecting gopkg.in/macaron.v1 package, versions <1.3.7


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.2% (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 Open Redirect vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GOPKGINMACARONV1-568050
  • published3 May 2020
  • disclosed3 May 2020
  • creditev0A

Introduced: 3 May 2020

CVE-2020-12666  (opens in a new tab)
CWE-601  (opens in a new tab)

How to fix?

Upgrade gopkg.in/macaron.v1 to version 1.3.7 or higher.

Overview

gopkg.in/macaron.v1 is a high productive and modular web framework in Go.

Affected versions of this package are vulnerable to Open Redirect. It allows remote attackers to redirect users to arbitrary web sites.

PoC by ev0A:

package main
import "gopkg.in/macaron.v1"
func main() {
    m := macaron.Classic()
    m.Get("/", func(ctx *macaron.Context) string {
        return "Hello world!"
    })
    m.Use(macaron.Static("static"))
    m.Run()
}

CVSS Scores

version 3.1