Sourcegraph up to 3.15.0 redirect.go SafeRedirectURL String
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.5 | $0-$5k | 0.00 |
Summary
A vulnerability was found in Sourcegraph up to 3.15.0 and classified as critical. Affected is the function SafeRedirectURL of the file cmd/frontend/auth/redirect.go. Executing a manipulation with the input //foo//example.com as part of String can lead to redirect.
This vulnerability appears as CVE-2020-12283. The attack may be performed from remote. There is no available exploit.
It is suggested to upgrade the affected component.
Details
A vulnerability classified as critical was found in Sourcegraph up to 3.15.0. This vulnerability affects the function SafeRedirectURL of the file cmd/frontend/auth/redirect.go. The manipulation with the input value //foo//example.com leads to a redirect vulnerability. The CWE definition for the vulnerability is CWE-601. A web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a Redirect. This simplifies phishing attacks. As an impact it is known to affect confidentiality, integrity, and availability. CVE summarizes:
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.
The weakness was presented 04/30/2020 (GitHub Repository). The advisory is shared for download at github.com. This vulnerability was named CVE-2020-12283 since 04/27/2020. The attack can be initiated remotely. No form of authentication is required for a successful exploitation. Successful exploitation requires user interaction by the victim. There are known technical details, but no exploit is available. The MITRE ATT&CK project declares the attack technique as T1204.001.
Upgrading to version 3.15.1 eliminates this vulnerability.
VulDB is the best source for vulnerability data and more expert information about this specific topic.
Product
Name
Version
License
Website
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 6.6VulDB Meta Temp Score: 6.4
VulDB Base Score: 7.1
VulDB Temp Score: 6.8
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 6.1
NVD Vector: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: RedirectCWE: CWE-601
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: Sourcegraph 3.15.1
Patch: github.com
Timeline
04/27/2020 🔍04/30/2020 🔍
05/01/2020 🔍
05/06/2025 🔍
Sources
Product: github.comAdvisory: c0f48172e815c7f66471a38f0a06d1fc32a77a64
Status: Confirmed
Confirmation: 🔍
CVE: CVE-2020-12283 (🔍)
GCVE (CVE): GCVE-0-2020-12283
GCVE (VulDB): GCVE-100-154648
Entry
Created: 05/01/2020 09:01Updated: 05/06/2025 04:07
Changes: 05/01/2020 09:01 (42), 05/01/2020 09:06 (17), 10/14/2020 17:02 (1), 06/04/2024 20:01 (19), 06/04/2024 20:08 (1), 05/06/2025 04:07 (7)
Complete: 🔍
Cache ID: 216::103
VulDB is the best source for vulnerability data and more expert information about this specific topic.
No comments yet. Languages: en.
Please log in to comment.