PT-2020-13094 · Sourcegraph · Sourcegraph
Alvaro Munoz
+5
·
Published
2020-04-30
·
Updated
2021-12-20
·
CVE-2020-12283
CVSS v3.1
6.1
Medium
| Vector | AV: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.Exploit
Fix
Open Redirect
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Sourcegraph