.. / CVE-2020-14144

Exploit for Gitea 1.1.0 - 1.12.5 - Remote Code Execution (CVE-2020-14144)

Description:

Gitea 1.1.0 through 1.12.5 is susceptible to authenticated remote code execution, via the git hook functionality, in customer environments where the documentation is 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 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.”

Nuclei Template

View the template here CVE-2020-14144.yaml

Validate with Nuclei

echo "$URL" | nuclei -t ~/nuclei-templates/http/cves/2020/CVE-2020-14144.yaml
Copy

References:

https://docs.github.com/en/[email protected]/admin/policies/creating-a-pre-receive-hook-script
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/
https://dl.gitea.io/gitea/1.16.6
https://nvd.nist.gov/vuln/detail/CVE-2020-14144
https://github.com/go-gitea/gitea/pull/13058