Open Redirect Affecting github.com/sourcegraph/sourcegraph/cmd/frontend/auth package, versions <3.15.1


0.0
low

Snyk CVSS

    Attack Complexity High

    Threat Intelligence

    EPSS 0.12% (47th percentile)
Expand this section
NVD
6.1 medium

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-GOLANG-GITHUBCOMSOURCEGRAPHSOURCEGRAPHCMDFRONTENDAUTH-567868
  • published 30 Apr 2020
  • disclosed 30 Apr 2020
  • credit Unknown

How to fix?

Upgrade github.com/sourcegraph/sourcegraph/cmd/frontend/auth to version 3.15.1 or higher.

Overview

github.com/sourcegraph/sourcegraph/cmd/frontend/auth is an auth package for sourcegraph frontend.

Affected versions of this package are vulnerable to Open Redirect. The SourceGraph application has a vulnerable authentication workflow because of improper validation in the SafeRedirectURL method in cmd/frontend/auth/redirect.go, such as for the //foo//example.com substring.