CVE-2020-12283 Open redirect vulnerability in Sourcegraph

Medium 6.1 Published Updated

An attacker can redirect users to malicious sites via improper URL validation in Sourcegraph's authentication workflow.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2020-12283?

CVE-2020-12283 is a medium-severity vulnerability in n/a, published on 30 Apr 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Sourcegraph before 3.15.1 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.

Weakness: CWE-601

Which versions are affected by CVE-2020-12283?

4 open source packages ship an affected version, including github.com/sourcegraph/sourcegraph. It affects 1 product.

PackageAffectedFixed in
github.com/sourcegraph/sourcegraph GoAll versions3.14.4
github.com/sourcegraph/sourcegraph GoAll versions3.14.4
github.com/sourcegraph/sourcegraph GoFrom 3.15.03.15.1
github.com/sourcegraph/sourcegraph GoFrom 3.15.03.15.1

Products include Sourcegraph Sourcegraph.

How do I fix CVE-2020-12283?

Upgrade github.com/sourcegraph/sourcegraph to a fixed version for your release line: 3.14.4 or 3.15.1.

Is CVE-2020-12283 being exploited?

There is no known exploitation of CVE-2020-12283 in the wild and no public exploit code.

Sources

Also known as GHSA-mx43-r985-5h4m.

Is CVE-2020-12283 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free