Server-side Request Forgery (SSRF) Affecting github.com/gophish/gophish/controllers package, versions <0.6.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

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

CVE NOT AVAILABLE 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.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
5.3 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    Low
  • Integrity (I)
    None
  • Availability (A)
    None