Medium severity6.1NVD Advisory· Published Jul 17, 2017· Updated May 13, 2026
CVE-2017-1000070
CVE-2017-1000070
Description
The Bitly oauth2_proxy in version 2.1 and earlier was affected by an open redirect vulnerability during the start and termination of the 2-legged OAuth flow. This issue was caused by improper input validation and a violation of RFC-6819
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/bitly/oauth2_proxyGo | < 2.2.0 | 2.2.0 |
Affected products
1- cpe:2.3:a:oauth2_proxy_project:oauth2_proxy:*:*:*:*:*:*:*:*Range: <=2.1
Patches
1289a6ccf463aadd check for //.* to prevent open redirect during oauth
2 files changed · +2 −2
oauthproxy.go+1 −1 modified@@ -490,7 +490,7 @@ func (p *OAuthProxy) OAuthCallback(rw http.ResponseWriter, req *http.Request) { } redirect := req.Form.Get("state") - if !strings.HasPrefix(redirect, "/") { + if !strings.HasPrefix(redirect, "/") || strings.HasPrefix(redirect, "//") { redirect = "/" }
providers/provider_default.go+1 −1 modified@@ -88,7 +88,7 @@ func (p *ProviderData) GetLoginURL(redirectURI, finalRedirect string) string { params.Add("scope", p.Scope) params.Set("client_id", p.ClientID) params.Set("response_type", "code") - if strings.HasPrefix(finalRedirect, "/") { + if strings.HasPrefix(finalRedirect, "/") && !strings.HasPrefix(finalRedirect,"//") { params.Add("state", finalRedirect) } a.RawQuery = params.Encode()
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
7- github.com/bitly/oauth2_proxy/pull/359nvdPatchThird Party AdvisoryWEB
- github.com/advisories/GHSA-jm34-xm8m-w958ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2017-1000070ghsaADVISORY
- github.com/bitly/oauth2_proxy/commit/289a6ccf463a425c7606178c510fc5eeb9c8b050ghsaWEB
- github.com/bitly/oauth2_proxy/issues/228ghsaWEB
- tools.ietf.org/html/rfc6819nvdTechnical DescriptionWEB
- web.nvd.nist.gov/view/vuln/detailghsaWEB
News mentions
0No linked articles in our index yet.