Advisory

GHSA-hvw3-p9px-gpc9

Also known as: CVE-2022-25295, GO-2022-0987

Summary

Gophish before 0.12.0 vulnerable to Open Redirect

Details

This affects the package github.com/gophish/gophish before 0.12.0. The Open Redirect vulnerability exists in the next query parameter. The application uses url.Parse(r.FormValue("next")) to extract path and eventually redirect user to a relative URL, but if next parameter starts with multiple backslashes like \\\\\\example.com, browser will redirect user to http://example.com.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-09-12 00:00 UTC
Modified
2024-08-21 16:28 UTC

Affected packages and fixes

github.com/gophish/gophish

Go · All systems

Affected

  • introduced 0, fixed 0.12.0 (semver)

Fixed versions

0.12.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences