CVE-2022-25295
JSON

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 packageVersionsReported by
github.com/gophish/gophishfrom unspecified before 0.12.0CVE List
github.com/gophish/gophish (Go)before 0.12.0GitHub Advisory Database, Go Vulnerability Database
getgophish gophishbefore 0.12.0NVD

All scores

snyk5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P/RL:U/RC:C
GitHub5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
NVD5.4medium CVSS:3.1CVSS: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

Sources

SourceRecordLicence
CVE ListCVE-2022-25295 changed 2024-09-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-hvw3-p9px-gpc9 changed 2024-08-21CC-BY-4.0
Go Vulnerability DatabaseGO-2022-0987 changed 2026-03-03CC-BY-4.0
NVDCVE-2022-25295 changed 2026-06-17Public domain