The git hook feature in Gogs 0.5.5 through 0.12.2 allows for authenticated remote code execution. There can be a privilege escalation if access to this hook feature is granted to a user who does not have administrative privileges. NOTE: because this is mentioned in the documentation but not in the UI, it could be considered a "Product UI does not Warn User of Unsafe Actions" issue.
References
Link | Resource |
---|---|
https://www.fzi.de/en/news/news/detail-en/artikel/fsa-2020-3-schwachstelle-in-gitea-1125-und-gogs-0122-ermoeglicht-ausfuehrung-von-code-nach-authent/ | Exploit Third Party Advisory |
http://packetstormsecurity.com/files/162123/Gogs-Git-Hooks-Remote-Code-Execution.html | Exploit Third Party Advisory VDB Entry |
Configurations
Information
Published : 2020-10-16 07:15
Updated : 2022-04-26 10:06
NVD link : CVE-2020-15867
Mitre link : CVE-2020-15867
JSON object : View
CWE
Products Affected
gogs
- gogs