CVE-2022-25295 Open Redirect

Medium 5.4 Published Updated

Attackers can redirect users to malicious external sites via crafted backslash sequences in the next parameter, potentially facilitating phishing attacks.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2022-25295?

CVE-2022-25295 is a medium-severity vulnerability in github.com/gophish/gophish, published on 11 Sep 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-601

Which versions are affected by CVE-2022-25295?

3 open source packages ship an affected version, including github.com/gophish/gophish. It affects 1 product.

PackageAffectedFixed in
github.com/gophish/gophish GoAll versions0.12.0
github.com/gophish/gophish GoAll versions0.12.0
github.com/gophish/gophish GoAll versions0.12.0

Products include Getgophish Gophish.

How do I fix CVE-2022-25295?

Upgrade github.com/gophish/gophish to 0.12.0 or later.

Is CVE-2022-25295 being exploited?

There is no known exploitation of CVE-2022-25295 in the wild and no public exploit code.

Sources

Also known as GHSA-hvw3-p9px-gpc9, GO-2022-0987.

Is CVE-2022-25295 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free