Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2018-19571 PoC — GitLab 代码问题漏洞

Source
Associated Vulnerability
Title:GitLab 代码问题漏洞 (CVE-2018-19571)
Description:GitLab是美国GitLab公司的一款使用Ruby on Rails开发的、自托管的、Git(版本控制系统)项目仓库应用程序。该程序可用于查阅项目的文件内容、提交历史、Bug列表等。 GitLab(企业版和社区版) 8.18版本至11.x版本(11.3.11版本已修复)、11.4.8之前的11.4版本和11.5.1之前的11.5版本中存在代码问题漏洞。该漏洞源于网络系统或产品的代码开发过程中存在设计或实现不当的问题。
Description
Fixed version of the Python script to exploit CVE-2018-19571 and CVE-2018-19585 (GitLab 11.4.7 - Authenticated Remote Code Execution) that is available at https://www.exploit-db.com/exploits/49263 (Python 3.9).
Readme
# edb-49263-fixed - GitLab 11.4.7 - Authenticated Remote Code Execution
Fixed version of the Python script to exploit CVE-2018-19571 and CVE-2018-19585 (GitLab 11.4.7 - Authenticated Remote Code Execution) that is available at https://www.exploit-db.com/exploits/49263 (Python 3.9).

## Usage
Edit the script and replace the target address there with the actual target address.

Also keep in mind that you have to

1. have a valid user account on the target Gitlab instance,
2. run a (python) web server on port 80 in the directory that the script is run from,
3. have an active proxy server on your machine on port 8080 (e. g. BURP with intercept turned off; script execution will fail without error if there is no proxy server running on the local host or if it is refusing connections), and
4. have a netcat listener set up on the desired port on your machine.

The script is then executed as follows:

`python3 49263.py -U username -P password -l local-ip -p local-port-for-netcat-listener`
File Snapshot

[4.0K] /data/pocs/c6ed3cea9a4da262a0e3c89945a9503beaf3a87c ├── [8.5K] 49263.py └── [ 995] README.md 0 directories, 2 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.