PT-2020-13094
CVE-2020-12283
·
Published
2020-04-30
·
Updated
2021-12-20
Description by
CVSS 3.1
6.1
MediumMetricsAV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions
Sourcegraph versions prior to 3.15.1
Description
The issue is related to a vulnerable authentication workflow due to improper validation in the
SafeRedirectURL method. This method, located in cmd/frontend/auth/redirect.go, fails to properly validate URLs, which can be exploited. For example, the substring //foo//example.com can be used to bypass validation.Recommendations
For versions prior to 3.15.1, update to version 3.15.1 or later to resolve the issue. As a temporary workaround, consider restricting access to the
SafeRedirectURL method in cmd/frontend/auth/redirect.go to minimize the risk of exploitation.Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾