https://github.com/ly4k/bluegate
PoC (DoS + scanner) for CVE-2020-0609 & CVE-2020-0610 - RD Gateway RCE
https://github.com/ly4k/bluegate
cve-2020-0609 cve-2020-0610
Last synced: 2 months ago
JSON representation
PoC (DoS + scanner) for CVE-2020-0609 & CVE-2020-0610 - RD Gateway RCE
- Host: GitHub
- URL: https://github.com/ly4k/bluegate
- Owner: ly4k
- Created: 2020-01-23T22:29:46.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-24T15:21:06.000Z (over 5 years ago)
- Last Synced: 2025-04-09T22:17:33.865Z (2 months ago)
- Topics: cve-2020-0609, cve-2020-0610
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 250
- Watchers: 13
- Forks: 77
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BlueGate
Proof of Concept (Denial of Service + scanner) for CVE-2020-0609 and CVE-2020-0610.
These vulnerabilities allows an unauthenticated attacker to gain remote code execution with highest privileges via RD Gateway for RDP.
Please use for research and educational purpose only.
## Usage
Make sure you have [pyOpenSSL](https://www.pyopenssl.org/en/stable/) installed for python3.usage: BlueGate.py [-h] -M {check,dos} [-P PORT] host
positional arguments:
host IP address of host
optional arguments:
-h, --help show this help message and exit
-M {check,dos}, --mode {check,dos}
Mode
-P PORT, --port PORT UDP port of RDG, default: 3391
## Vulnerability
The vulnerabilities allows an unauthenticated attacker to write forward out-of-bound in the heap, by specifying an unchecked and arbitrary index parameter `(0x00 - 0xFFFF)`. The data to write is also arbitrary with a length up to 1000 bytes at a time and a maximum of 4096 during one session.
If you would like to read more about the vulnerabilities, check [this](https://www.kryptoslogic.com/blog/2020/01/rdp-to-rce-when-fragmentation-goes-wrong/) or read my latest tweets on [Twitter](https://twitter.com/ollypwn) with a PoC video as well.
## What is RD Gateway?
RD Gateway acts as a proxy for RDP; i.e. between some internal servers and the internet, so you don't have to expose RDP directly to the internet.
## Why BlueGate?
That was just the working title, and I couldn't come up with a better one at this stage.
## Todo:
- ~~Vulnerability scanner/checker~~ **DONE**
- ~~Python implementation~~ **DONE**