CVE-2018-15178 Open Redirect
Remote attackers can redirect users to arbitrary websites via a crafted login parameter, facilitating phishing attacks against Gogs users.
- 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-2018-15178?
CVE-2018-15178 is a medium-severity vulnerability in n/a, published on 8 Aug 2018. 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
Open redirect vulnerability in Gogs before 0.12 allows remote attackers to redirect users to arbitrary websites and conduct phishing attacks via an initial /\ substring in the user/login redirect_to parameter, related to the function isValidRedirect in routes/user/auth.go.
Weakness: CWE-601
Which versions are affected by CVE-2018-15178?
3 open source packages ship an affected version, including gogs.io/gogs. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
gogs.io/gogs Go | All versions | 0.12.0 |
gogs.io/gogs Go | All versions | 0.12.0 |
gogs.io/gogs Go | All versions | 0.12.0 |
Products include Gogs Gogs.
How do I fix CVE-2018-15178?
Upgrade gogs.io/gogs to 0.12.0 or later.
Is CVE-2018-15178 being exploited?
There is no known exploitation of CVE-2018-15178 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-cpgw-2wxr-pww3, GO-2022-0822.