CVE-2022-45004 Gophish vulnerable to Cross-site Scripting via crafted landing page
Attackers can execute arbitrary scripts in victim browsers via crafted landing pages in Gophish, potentially leading to session hijacking or data theft.
- 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
- None listed
What is CVE-2022-45004?
CVE-2022-45004 is a medium-severity cross-site scripting vulnerability in n/a, published on 22 Mar 2023. 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
Gophish through 0.12.1 was discovered to contain a cross-site scripting (XSS) vulnerability via a crafted landing page.
Weakness: CWE-79
Which versions are affected by CVE-2022-45004?
2 open source packages ship an affected version, including github.com/gophish/gophish. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/gophish/gophish Go | All versions to 0.12.1 | None |
github.com/gophish/gophish Go | All versions to 0.12.1 | None |
Products include Getgophish Gophish.
How do I fix CVE-2022-45004?
No fix has been published for CVE-2022-45004 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2022-45004 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-45004 exists.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in n/a
Sources
Also known as GHSA-55m9-hm92-xm8j.