CVE-2022-25295

URL Redirection to Untrusted Site ('Open Redirect') in go/github.com/gophish/gophish

Identifiers

GHSA-hvw3-p9px-gpc9, CVE-2022-25295

Package Slug

go/github.com/gophish/gophish

Vulnerability

URL Redirection to Untrusted Site ('Open Redirect')

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 Versions

All versions before 0.12.0

Solution

Upgrade to version 0.12.0 or above.

Last Modified

2022-09-15

source