Description
Gophish 0.11.0 through 0.12.1 contains a server-side request forgery vulnerability that allows authenticated low-privileged users to reach loopback and private hosts via POST /api/import/site. Attackers can submit internal URLs, which the default dialer deny list does not block, to read service responses and enumerate internal hosts and ports through error messages.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| gophish | gophish | 0.11.0 – ≤ 0.12.1 | — |
References
- Researcher Disclosure technical-description exploit
- https://github.com/gophish/gophish/blob/b1648f0759c6d57ac989157c55d8b47c40254fe6/dialer/dialer.go#L82-L86 technical-description
- https://github.com/gophish/gophish/blob/b1648f0759c6d57ac989157c55d8b47c40254fe6/controllers/api/import.go#L102-L125 technical-description
- https://github.com/gophish/gophish product
- VulnCheck Advisory: Gophish 0.11.0 through 0.12.1 SSRF via POST /api/import/site third-party-advisory