Server-side Request Forgery (SSRF) Affecting github.com/gophish/gophish/controllers Open this link in a new tab package, versions <0.6.0


0.0
medium
  • Attack Complexity

    Low

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

Introduced: 26 Mar 2018

CWE-918 Open this link in a new tab

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.