{"id":"CVE-2022-25295","published":"2022-09-11T13:45:20Z","modified":"2024-09-16T17:29:06Z","title":"Open Redirect","vendor":null,"product":null,"tier":"tail","description":{"text":"This affects the package github.com/gophish/gophish before 0.12.0. The Open Redirect vulnerability exists in the next query parameter. The application uses url.Parse(r.FormValue(\"next\")) to extract path and eventually redirect user to a relative URL, but if next parameter starts with multiple backslashes like \\\\\\\\\\\\example.com, browser will redirect user to http://example.com.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P/RL:U/RC:C","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00702,"percentile":0.54164,"provenance":"source"},"cwes":[],"references":[{"url":"https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGOPHISHGOPHISH-2404177","tags":["x_refsource_MISC"]},{"url":"https://github.com/gophish/gophish/pull/2262","tags":["x_refsource_MISC"]}],"priority":{"score":14.6,"factors":[{"name":"EPSS percentile","points":10.83},{"name":"CVSS severity","points":3.78}]},"affectedVersions":[{"vendor":"n/a","product":"github.com/gophish/gophish","versions":[">= unspecified, < 0.12.0"]}],"affected":[{"ecosystem":"Go","package":"github.com/gophish/gophish","vulnerableRanges":["<0.12.0"],"patched":["0.12.0"],"from":["GHSA-hvw3-p9px-gpc9","GO-2022-0987"],"provenance":"source"}],"summary":{"text":"The Open Redirect flaw lives in the next query parameter of the github.com/gophish/gophish package, in versions before 0.12.0, where the application passes the value through url.Parse and then redirects the user to the result. An attacker can craft a next value beginning with multiple backslashes, such as \\\\\\\\example.com, so that the browser redirects the victim to an external site; this requires only network access and no authentication, but the victim must be tricked into following a crafted link.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:38:09Z"},"euvd":{"id":"EUVD-2022-6843","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-github-com-gophish-gophish-cve-2020-24711","parents":[{"from":"CVE-2020-24711","to":"CVE-2022-25295","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["controllers/route.go"],"commits":["https://github.com/gophish/gophish/commit/6df62e85fd60f0931d3c8bfdb13b436a961bc9b6","https://github.com/gophish/gophish/commit/2a452bda89ffdb85f929fa78290bce1f456881dc"],"basis":"rarely changed file"}]}]}}