GitHub Advisoryadvisory · Go

GHSA-hvw3-p9px-gpc9 Gophish before 0.12.0 vulnerable to Open Redirect

MEDIUM Published 2022-09-12 Modified 2022-09-16 Official page ↗
Aliases
CVE-2022-25295
Ecosystem
Go
Packages
github.com/gophish/gophish
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Weaknesses
CWE-601
Reviewed
2022-09-15

Affected packages

• Go github.com/gophish/gophish: < 0.12.0 → fixed in 0.12.0

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.

Related

Alias · CVE (1)

  • CVE-2022-25295 This affects the package github.com/gophish/gophish before 0.12.0. vulnerability

Weakness · CWE (1)

  • CWE-601 URL Redirection to Untrusted Site weakness

References