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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2020-0618 PoC — Microsoft SQL Server Reporting Services 代码问题漏洞

Source
Associated Vulnerability
Title: Microsoft SQL Server Reporting Services 代码问题漏洞 (CVE-2020-0618)
Description:A remote code execution vulnerability exists in Microsoft SQL Server Reporting Services when it incorrectly handles page requests, aka 'Microsoft SQL Server Reporting Services Remote Code Execution Vulnerability'.
Description
CVE-2020-0618 Honeypot
Readme
# CVE-2020-0618 Honeypot
- Detects and logs attempts to exploit CVE-020-0618 (SQL Reporting Services RCE)
- Serves content and headers like SSRS would, in order to increase chance of indexing on search engines (e.g. google, shodan etc.)
- Based on the great work of [MDSec](https://www.mdsec.co.uk/2020/02/cve-2020-0618-rce-in-sql-server-reporting-services-ssrs/) and [x1sec](https://github.com/x1sec/citrix-honeypot)

![screenshot](https://github.com/wortell/cve-2020-0618/blob/master/img/honeypot.png)

## Installation

### Get the code
Make sure you have a [Go](https://golang.org/) environment ready to go.

```
git clone https://github.com/wortell/cve-2020-0618
```

### Generate certificates
Generate self signed certificate:
```
openssl genrsa -out server.key 2048
openssl ecparam -genkey -name secp384r1 -out server.key
openssl req -new -x509 -sha256 -key server.key -out server.crt -days 3650
```

### Run
It's easy as:
```
go get github.com/gorilla/mux
go run honeypot.go
```

The honeypot will listen on both port `80` and `443` (so it must be run as `root` user)

Or to detach and run as a background process:
```
nohup go run honeypot.go &
```

### Docker
Or run it in a Docker container instead:
```
git clone https://github.com/wortell/cve-2020-0618
cd cve-2020-0618
docker image build -t cve-2020-0618:1.0 .
docker container run --publish 80:80 --publish 443:443 --detach --name honeypot cve-2020-0618:1.0
```
PRO TIP: Mount the Logs directory locally, so you don't loose the files

## Logs
Results / data is written to the `./log` directory. They are:

`cve.log` - Exploitation attempts and exploitation attempts with all data (e.g. headers, post body)

`allrequests.log` - All HTTP requests that are observed hitting the server

`tls.log` - Often internet scanners will send invalid data to port `443`. HTTPS errors are logged here.
File Snapshot

Log in to view the POC file snapshot cached by Shenlong Bot

Log in to view
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →