Skip to content

Commit de51734

Browse files
committed
automatic module_metadata_base.json update
1 parent 926f051 commit de51734

File tree

1 file changed

+122
-0
lines changed

1 file changed

+122
-0
lines changed

db/modules_metadata_base.json

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74900,6 +74900,67 @@
7490074900
},
7490174901
"needs_cleanup": null
7490274902
},
74903+
"exploit_multi/http/gitea_git_hooks_rce": {
74904+
"name": "Gitea Git Hooks Remote Code Execution",
74905+
"fullname": "exploit/multi/http/gitea_git_hooks_rce",
74906+
"aliases": [
74907+
74908+
],
74909+
"rank": 600,
74910+
"disclosure_date": "2020-10-07",
74911+
"type": "exploit",
74912+
"author": [
74913+
"Podalirius",
74914+
"Christophe De La Fuente"
74915+
],
74916+
"description": "This module leverages an insecure setting to get remote code\n execution on the target OS in the context of the user running Gitea.\n This is possible when the current user is allowed to create `git\n hooks`, which is the default for administrative users. For\n non-administrative users, the permission needs to be specifically\n granted by an administrator.\n\n To achieve code execution, the module authenticates to the Gitea web\n interface, creates a temporary repository, sets a `post-receive` git\n hook with the payload and creates a dummy file in the repository.\n This last action will trigger the git hook and execute the payload.\n Everything is done through the web interface.\n\n It has been mitigated in version 1.13.0 by setting the Gitea\n `DISABLE_GIT_HOOKS` configuration setting to `true` by default. This\n disables this feature and prevents all users (including admin) from\n creating custom git hooks.\n\n This module has been tested successfully against docker versions 1.12.5,\n 1.12.6 and 1.13.6 with `DISABLE_GIT_HOOKS` set to `false`, and on\n version 1.12.6 on Windows.",
74917+
"references": [
74918+
"CVE-2020-14144",
74919+
"EDB-49571",
74920+
"URL-https://podalirius.net/articles/exploiting-cve-2020-14144-gitea-authenticated-remote-code-execution/",
74921+
"URL-https://www.fzi.de/en/news/news/detail-en/artikel/fsa-2020-3-schwachstelle-in-gitea-1126-und-gogs-0122-ermoeglicht-ausfuehrung-von-code-nach-authent/"
74922+
],
74923+
"platform": "Linux,Unix,Windows",
74924+
"arch": "cmd, x86, x64",
74925+
"rport": 3000,
74926+
"autofilter_ports": [
74927+
80,
74928+
8080,
74929+
443,
74930+
8000,
74931+
8888,
74932+
8880,
74933+
8008,
74934+
3000,
74935+
8443
74936+
],
74937+
"autofilter_services": [
74938+
"http",
74939+
"https"
74940+
],
74941+
"targets": [
74942+
"Unix Command",
74943+
"Linux Dropper",
74944+
"Windows Command",
74945+
"Windows Dropper"
74946+
],
74947+
"mod_time": "2021-04-07 19:40:59 +0000",
74948+
"path": "/modules/exploits/multi/http/gitea_git_hooks_rce.rb",
74949+
"is_install_path": true,
74950+
"ref_name": "multi/http/gitea_git_hooks_rce",
74951+
"check": true,
74952+
"post_auth": true,
74953+
"default_credential": false,
74954+
"notes": {
74955+
"Stability": [
74956+
"crash-safe"
74957+
],
74958+
"Reliability": [
74959+
"repeatable-session"
74960+
]
74961+
},
74962+
"needs_cleanup": null
74963+
},
7490374964
"exploit_multi/http/gitlab_file_read_rce": {
7490474965
"name": "GitLab File Read Remote Code Execution",
7490574966
"fullname": "exploit/multi/http/gitlab_file_read_rce",
@@ -75267,6 +75328,67 @@
7526775328
},
7526875329
"needs_cleanup": null
7526975330
},
75331+
"exploit_multi/http/gogs_git_hooks_rce": {
75332+
"name": "Gogs Git Hooks Remote Code Execution",
75333+
"fullname": "exploit/multi/http/gogs_git_hooks_rce",
75334+
"aliases": [
75335+
75336+
],
75337+
"rank": 600,
75338+
"disclosure_date": "2020-10-07",
75339+
"type": "exploit",
75340+
"author": [
75341+
"Podalirius",
75342+
"Christophe De La Fuente"
75343+
],
75344+
"description": "This module leverages an insecure setting to get remote code\n execution on the target OS in the context of the user running Gogs.\n This is possible when the current user is allowed to create `git\n hooks`, which is the default for administrative users. For\n non-administrative users, the permission needs to be specifically\n granted by an administrator.\n\n To achieve code execution, the module authenticates to the Gogs web\n interface, creates a temporary repository, sets a `post-receive` git\n hook with the payload and creates a dummy file in the repository.\n This last action will trigger the git hook and execute the payload.\n Everything is done through the web interface.\n\n No mitigation has been implemented so far (latest stable version is\n 0.12.3).\n\n This module has been tested successfully against version 0.12.3 on\n docker. Windows version could not be tested since the git hook feature\n seems to be broken.",
75345+
"references": [
75346+
"CVE-2020-15867",
75347+
"EDB-49571",
75348+
"URL-https://podalirius.net/articles/exploiting-cve-2020-14144-gitea-authenticated-remote-code-execution/",
75349+
"URL-https://www.fzi.de/en/news/news/detail-en/artikel/fsa-2020-3-schwachstelle-in-gitea-1126-und-gogs-0122-ermoeglicht-ausfuehrung-von-code-nach-authent/"
75350+
],
75351+
"platform": "Linux,Unix,Windows",
75352+
"arch": "cmd, x86, x64",
75353+
"rport": 3000,
75354+
"autofilter_ports": [
75355+
80,
75356+
8080,
75357+
443,
75358+
8000,
75359+
8888,
75360+
8880,
75361+
8008,
75362+
3000,
75363+
8443
75364+
],
75365+
"autofilter_services": [
75366+
"http",
75367+
"https"
75368+
],
75369+
"targets": [
75370+
"Unix Command",
75371+
"Linux Dropper",
75372+
"Windows Command",
75373+
"Windows Dropper"
75374+
],
75375+
"mod_time": "2021-04-07 19:40:59 +0000",
75376+
"path": "/modules/exploits/multi/http/gogs_git_hooks_rce.rb",
75377+
"is_install_path": true,
75378+
"ref_name": "multi/http/gogs_git_hooks_rce",
75379+
"check": true,
75380+
"post_auth": true,
75381+
"default_credential": false,
75382+
"notes": {
75383+
"Stability": [
75384+
"crash-safe"
75385+
],
75386+
"Reliability": [
75387+
"repeatable-session"
75388+
]
75389+
},
75390+
"needs_cleanup": null
75391+
},
7527075392
"exploit_multi/http/horde_csv_rce": {
7527175393
"name": "Horde CSV import arbitrary PHP code execution",
7527275394
"fullname": "exploit/multi/http/horde_csv_rce",

0 commit comments

Comments
 (0)