Vulnerability · Published Sep 11, 2022 · Assigned by snyk

CVE-2022-25295Open Redirect

Medium 5.4

In plain English

A medium-severity security flaw in github.com/gophish/gophish. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 53% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.4Medium
Exploit odds (30 days)0.7%top 46.6% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/gophish/gophish0.12.0GHSA-hvw3-p9px-gpc9
Gogithub.com/gophish/gophish0.12.0GO-2022-0987

Affected products (as reported)

VendorProductVersions
n/a github.com/gophish/gophish unspecified – before 0.12.0

References