Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. gogs.io/gogs
  4. ›
  5. CVE-2018-15178

CVE-2018-15178: URL Redirection to Untrusted Site ('Open Redirect')

June 29, 2021

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.

References

  • github.com/advisories/GHSA-cpgw-2wxr-pww3
  • github.com/gogs/gogs/commit/1f247cf8139cb483276cd8dd06385a800ce9d4b2
  • github.com/gogs/gogs/issues/5364
  • github.com/gogs/gogs/pull/5365
  • nvd.nist.gov/vuln/detail/CVE-2018-15178

Code Behaviors & Features

Detect and mitigate CVE-2018-15178 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.12.0

Fixed versions

  • 0.12.0

Solution

Upgrade to version 0.12.0 or above.

Impact 6.1 MEDIUM

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-601: URL Redirection to Untrusted Site ('Open Redirect')

Source file

go/gogs.io/gogs/CVE-2018-15178.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:24 +0000.