{"id":"CVE-2020-12283","aliases":[],"url":"https://o3.security/vulnerability/CVE-2020-12283","summary":"Open redirect vulnerability in Sourcegraph","details":"### Impact\n\nAn open redirect vulnerability that allows users to be targeted for phishing attacks has been found in Sourcegraph instances configured with OAuth, OpenID, or SAML authentication enabled. Users targeted by these phishing attacks could have their authentication tokens silently harvested by an attacker.\n\n### Specific Go Packages Affected\ngithub.com/sourcegraph/sourcegraph/cmd/frontend/auth\n\n### Resolution\n\nSourcegraph v3.14.4 and v3.15.1 have been released which resolve the vulnerability. ([associated change](https://github.com/sourcegraph/sourcegraph/pull/10167))\n\n### Workarounds\n\nDisabling OAuth, OpenID and/or SAML sign-in options until upgraded to the patched versions will secure Sourcegraph / workaround the issue.\n\n### Timeline\n\n- Apr 23, 8 AM PST: GitHub Security Lab reported the issue to Sourcegraph.\n- Apr 23, 11 PM PST: A Sourcegraph engineer proposed a resolution for the vulnerability. https://github.com/sourcegraph/sourcegraph/pull/10167\n- Apr 24, 3 AM PST: The proposed resolution was reviewed, approved, and merged.\n- Apr 28, 2 PM PST: Patch releases for 3.14.4 and 3.15.1 were published.\n- Apr 29, 10 PM PST: Mitre publicly disclosed [CVE-2020-12283](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-12283).\n- Apr 30, 11 AM PST: Sourcegraph issued a GitHub security advisory and notified all affected users.\n\n### References\n\n- [Mitre: CVE-2020-12283](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-12283)\n- [GitHub Security Lab: GHSL-2020-085](https://securitylab.github.com/advisories/GHSL-2020-085-sourcegraph)\n- [detectify's blog post on open redirect vulnerabilities\n](https://blog.detectify.com/2019/05/16/the-real-impact-of-an-open-redirect/)\n\n### For more information\n\nIf you have any questions or comments about this advisory, please contact us at [support@sourcegraph.com](mailto:support@sourcegraph.com) and include `CVE-2020-12283` in the title.","published":"2021-12-20T18:12:47Z","modified":"2023-11-08T04:02:09.885872Z","cvss":{"score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},"epss":{"score":0.013,"percentile":0.67796,"asOf":"2026-08-23"},"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"Go","name":"github.com/sourcegraph/sourcegraph","fixedVersion":"3.14.4"},{"ecosystem":"Go","name":"github.com/sourcegraph/sourcegraph","fixedVersion":"3.15.1"}],"fix":{"url":"https://github.com/sourcegraph/sourcegraph/pull/10167","label":"sourcegraph/sourcegraph#10167"},"references":[{"type":"WEB","url":"https://github.com/sourcegraph/sourcegraph/security/advisories/GHSA-mx43-r985-5h4m"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-12283"},{"type":"WEB","url":"https://github.com/sourcegraph/sourcegraph/pull/10167"},{"type":"WEB","url":"https://github.com/sourcegraph/sourcegraph/commit/c0f48172e815c7f66471a38f0a06d1fc32a77a64"},{"type":"PACKAGE","url":"https://github.com/sourcegraph/sourcegraph"},{"type":"WEB","url":"https://github.com/sourcegraph/sourcegraph/blob/master/CHANGELOG.md"},{"type":"WEB","url":"https://github.com/sourcegraph/sourcegraph/compare/v3.15.0...v3.15.1"},{"type":"ADVISORY","url":"https://securitylab.github.com/advisories/GHSL-2020-085-sourcegraph"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2023-11-08T04:02:09.885872Z"}}