GHSA-hvw3-p9px-gpc9

Suggest an improvement
Source
https://github.com/advisories/GHSA-hvw3-p9px-gpc9
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/09/GHSA-hvw3-p9px-gpc9/GHSA-hvw3-p9px-gpc9.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-hvw3-p9px-gpc9
Aliases
Published
2022-09-12T00:00:33Z
Modified
2024-08-21T16:28:58.334873Z
Severity
  • 5.4 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2022-09-11T14:15:00Z",
    "github_reviewed_at": "2022-09-15T03:28:46Z",
    "severity": "MODERATE",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-601"
    ]
}
References

Affected packages

Go / github.com/gophish/gophish

Package

Name
github.com/gophish/gophish
View open source insights on deps.dev
Purl
pkg:golang/github.com/gophish/gophish

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.12.0