5.4medium
Open Redirect
- Severity
- 5.4medium CVSS:3.1 by snyk
- Exploit likelihood
- 0.72% (higher than 55% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-hvw3-p9px-gpc9GO-2022-0987
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| github.com/gophish/gophish | from unspecified before 0.12.0 | CVE List |
| github.com/gophish/gophish (Go) | before 0.12.0 | GitHub Advisory Database, Go Vulnerability Database |
| getgophish gophish | before 0.12.0 | NVD |
All scores
| snyk | 5.4medium CVSS:3.1 | 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 |
| GitHub | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
Classification
What each source says
CVE List
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.
Go Vulnerability Database
Gophish before 0.12.0 vulnerable to Open Redirect in github.com/gophish/gophish
NVD (es)
Esto afecta al paquete github.com/gophish/gophish versiones anteriores a 0.12.0. Una vulnerabilidad de Redireccionamiento Abierto se presenta en el siguiente parámetro de consulta. La aplicación usa url.Parse(r.FormValue("next")) para extraer la ruta y eventualmente redirigir al usuario a una URL relativa, pero si el parámetro next comienza con múltiples barras invertidas como \\\\\\example.com, el navegador redirigirá al usuario a http://example.com
References
| https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGOPHISHGOPHISH-2404177 | exploit, third-party-advisory, web | |
| https://github.com/gophish/gophish/pull/2262 | fix, patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-25295 | advisory | |
| https://github.com/gophish/gophish/commit/2a452bda89ffdb85f929fa78290bce1f456881dc | fix, web | |
| https://github.com/gophish/gophish | package | |
| https://github.com/gophish/gophish/releases/tag/v0.12.0 | web | |
| https://github.com/advisories/GHSA-hvw3-p9px-gpc9 | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-25295 changed 2024-09-16 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-hvw3-p9px-gpc9 changed 2024-08-21 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2022-0987 changed 2026-03-03 | CC-BY-4.0 |
| NVD | CVE-2022-25295 changed 2026-06-17 | Public domain |