CVE-2020-24710: Gophish vulnerable to Server-Side Request Forgery
5.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.52773%
CWE
Published
5/24/2022
Updated
7/29/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| github.com/gophish/gophish | go | < 0.11.0 | 0.11.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from unrestricted outbound network connections in multiple components. The commit adds a RestrictedDialer to three critical paths: 1) Website import functionality (controllers/api/import.go) which made arbitrary HTTP requests, 2) IMAP client connections (imap/imap.go), and 3) SMTP dialer setup (models/smtp.go). These functions previously used Go's default network dialer without IP validation, allowing access to internal endpoints like cloud metadata services (169.254.169.254). The vulnerability is confirmed by the patch patterns, CVE description, and Herolab's advisory showing these components were used for internal network probing.