Open Redirect Affecting github.com/gophish/gophish/controllers package, versions <0.12.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.07% (33rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Open Redirect vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMGOPHISHGOPHISHCONTROLLERS-7897508
  • published5 Sept 2024
  • disclosed17 Feb 2022
  • creditSnyk Security Team

Introduced: 17 Feb 2022

CVE-2022-25295  (opens in a new tab)
CWE-601  (opens in a new tab)
First added by Snyk

How to fix?

Upgrade github.com/gophish/gophish/controllers to version 0.12.0 or higher.

Overview

github.com/gophish/gophish/controllers is a package middleware is responsible for the definition/​implementation of middleware functionality.

Affected versions of this package are vulnerable to Open Redirect. 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.

CVSS Scores

version 3.1