PT-2020-14088 · Gogs · Gogs
Muxishuihan
·
Published
2020-06-21
·
Updated
2024-08-21
·
CVE-2020-14958
CVSS v3.1
6.5
Medium
| Vector | AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
Name of the Vulnerable Software and Affected Versions
Gogs version 0.11.91
Description
The issue is related to insecure permissions in Gogs, specifically in the
MakeEmailPrimary function located in models/user mail.go. This function lacks a check to ensure the user is the owner of the email, potentially leading to security issues.Recommendations
For Gogs version 0.11.91, consider modifying the
MakeEmailPrimary function in models/user mail.go to include a check that verifies the user is the owner of the email before allowing changes to email settings. As a temporary workaround, consider restricting access to the email modification functionality until a proper fix is implemented.Fix
Improper Preservation of Permissions
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Gogs