CVE-2020-14144
HIGH NUCLEIGitea 1.1.0-1.12.5 - Authenticated Remote Code Execution via Git Hook Script Injection
Title source: llmExploitation Summary
EIP tracks 3 public exploits for CVE-2020-14144.
PoCs published by p0dalirius, Mohnad-AL-saif, Podalirius, Christophe De La Fuente, including Metasploit module exploits/multi/http/gitea_git_hooks_rce.
A Nuclei detection template is also available.
AI-analyzed exploit summary This PoC exploits CVE-2020-14144 in GiTea by leveraging git hooks to achieve authenticated remote code execution. It automates repository creation, git hook manipulation, and payload delivery via git push.
Description
The git hook feature in Gitea 1.1.0 through 1.12.5 might allow for authenticated remote code execution in customer environments where the documentation was not understood (e.g., one viewpoint is that the dangerousness of this feature should be documented immediately above the ENABLE_GIT_HOOKS line in the config file). NOTE: The vendor has indicated this is not a vulnerability and states "This is a functionality of the software that is limited to a very limited subset of accounts. If you give someone the privilege to execute arbitrary code on your server, they can execute arbitrary code on your server. We provide very clear warnings to users around this functionality and what it provides.
Exploits (3)
This PoC exploits CVE-2020-14144 in GiTea by leveraging git hooks to achieve authenticated remote code execution. It automates repository creation, git hook manipulation, and payload delivery via git push.
This repository contains a functional Python exploit for CVE-2020-14144, which allows authenticated users with git hook permissions to achieve remote code execution on Gitea instances. The exploit automates the creation of a malicious git hook and triggers it via a git push.
This Metasploit module exploits CVE-2020-14144 in Gitea by leveraging insecure git hooks to achieve remote code execution. It authenticates, creates a repository, sets a malicious post-receive hook, and triggers it by creating a dummy file.
Nuclei Templates (1)
html:"Powered by Gitea Version" || http.html:"powered by gitea version" || http.title:"gitea" || cpe:"cpe:2.3:a:gitea:gitea"
body="powered by gitea version" || title="gitea"
References (8)
Scores
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H