Server-side Request Forgery (SSRF) Affecting github.com/gophish/gophish/controllers package, versions <0.6.0
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-597668
- published 10 Aug 2020
- disclosed 26 Mar 2018
- credit Unknown
How to fix?
Upgrade github.com/gophish/gophish/controllers
to version 0.6.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 Server-side Request Forgery (SSRF). It is possible to access the Import Site
endpoint of the Create Landing Page
area without cookie/API key authentication. Unauthenticated users who can access the admin portal can use it to perform server side request forgery attacks.
Note: this is only really an issue if the admin interface is listening on anything other than 127.0.0.1, or if it is running on 127.0.0.1 on a multiuser machine accessed by non gophish admins.