CVE-2020-15867
HIGH NUCLEIGogs 0.5.5-0.12.2 - Authenticated Remote Code Execution via Git Hook Feature
Title source: llmExploitation Summary
EIP tracks 1 public exploit for CVE-2020-15867.
PoCs published by Podalirius, Christophe De La Fuente, including Metasploit module exploits/multi/http/gogs_git_hooks_rce.
A Nuclei detection template is also available.
AI-analyzed exploit summary This Metasploit module exploits CVE-2020-15867 in Gogs by authenticating, creating a repository, and setting a malicious git hook to achieve remote code execution.
Description
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.
Exploits (1)
This Metasploit module exploits CVE-2020-15867 in Gogs by authenticating, creating a repository, and setting a malicious git hook to achieve remote code execution.
Nuclei Templates (1)
cpe:"cpe:2.3:a:gogs:gogs" || http.title:"sign in - gogs"
title="sign in - gogs"
References (2)
Scores
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H