Gogs · Gogs · CVE-2020-14958
**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.