medium5.4
CVE-2022-25295
Gophish before 0.12.0 vulnerable to Open Redirect
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| go | github.com/gophish/gophish | < 0.12.0 | 0.12.0 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Getgophish | Gophish | before 0.12.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/gophish/gophish/pull/2262
- https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGOPHISHGOPHISH-2404177
- https://github.com/advisories/GHSA-hvw3-p9px-gpc9
- https://nvd.nist.gov/vuln/detail/CVE-2022-25295
- https://github.com/gophish/gophish/commit/2a452bda89ffdb85f929fa78290bce1f456881dc
- https://github.com/gophish/gophish/releases/tag/v0.12.0