PT-2018-12926

CVE-2018-15178

·

Published

2018-08-08

·

Updated

2024-08-21

Description by

CVSS 3.1
6.1
Medium
MetricsAV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions Gogs versions prior to 0.12
Description The issue allows remote attackers to redirect users to arbitrary websites, potentially leading to phishing attacks. This is achieved via an initial / substring in the redirect to parameter. The isValidRedirect function in routes/user/auth.go is related to this issue.
Recommendations For versions prior to 0.12, consider restricting access to the redirect to parameter in the user/login endpoint to minimize the risk of exploitation. As a temporary workaround, avoid using the redirect to parameter with initial / substrings until a patch is available.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-CPGW-2WXR-PWW3
GO-2022-0822
Found an issue in the description? Have something to add? Feel free to write us 👾