Open Redirect Affecting github.com/gophish/gophish/controllers package, versions <0.12.0
Threat Intelligence
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 ID SNYK-GOLANG-GITHUBCOMGOPHISHGOPHISHCONTROLLERS-7897508
- published 5 Sep 2024
- disclosed 17 Feb 2022
- credit Snyk Security Team
Introduced: 17 Feb 2022
CVE-2022-25295 Open this link in a new tabHow 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
.