Vulnerability · Published Apr 30, 2020 · Assigned by mitre
CVE-2020-12283
Medium 6.1
In plain English
A medium-severity security flaw in the github.com/sourcegraph/sourcegraph package (Go). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.3% (higher than 71% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)6.1Medium
Exploit odds (30 days)1.3%top 28.8% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/sourcegraph/sourcegraph | 3.14.4 | GHSA-mx43-r985-5h4m |
| Go | github.com/sourcegraph/sourcegraph | 3.15.1 | GHSA-mx43-r985-5h4m |
Affected products (as reported)
References
- https://github.com/sourcegraph/sourcegraph/pull/10167 x_refsource_MISC
- https://github.com/sourcegraph/sourcegraph/compare/v3.15.0...v3.15.1 x_refsource_MISC
- https://github.com/sourcegraph/sourcegraph/commit/c0f48172e815c7f66471a38f0a06d1fc32a77a64 x_refsource_MISC
- https://github.com/sourcegraph/sourcegraph/blob/master/CHANGELOG.md x_refsource_CONFIRM
- https://securitylab.github.com/advisories/GHSL-2020-085-sourcegraph x_refsource_MISC